You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I tried in various places, it gives errors on spotifyclientcredentials.
I don't have environmental variables set up so maybe that's why, but I don't want to do that because it might compromise my other codes that were custom made to work with a mac shortcut program I use and use Oauth and Oauth2 in code so I never had to set the variable it's all in code.
I just don't know anything about python to comprehend the readme or docs, so it's pointless unless you post a gist with everything in place.
appreciate you trying anyway, I understand it's frustrating talking to people who know nothing of coding.
The reason will be displayed to describe this comment to others. Learn more.
oh, well yeah, that works, because it's simple all I have to do is add credentials, but that's not much help to me I'm trying to either get this script or that person from #702 script to work and I don't know where or what to place where, and not to sound like a dick I don't want to learn any coding just would appreciate a gist or py file where I can put my credentials without setting permanent environmental variables that could screw up my existing setup.
The reason will be displayed to describe this comment to others. Learn more.
I don't want to learn any coding just would appreciate a gist or py file where I can put my credentials
But I want you to know that even though we will always help and unblock you on spotipy-related issues here, we're not here to write code for you and efforts on your side are expected
The reason will be displayed to describe this comment to others. Learn more.
ok well thanks, if it works it works, if it doesn't it doesn't, I never asked anyone to do my work or write me a code and I wouldn't because that's obnoxious. I only asked if it was possible, he volunteered nicely an already done code but probably expected some rudimentary knowledge level that I had to make it work that I didn't have.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this include songs buried in "appears in" compilations? Does it generate user playlist you can edit or take you to an artist playlist?
as well I get error
spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable.
when I try to run it, can someone post full code where I can insert my client id and secret to my dev app please, appreciated.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greeneryAO please read the docs at https://spotipy.readthedocs.io/en/2.18.0/#client-credentials-flow
The code doesn't need to be changed.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, I understand I have to link it to my client id and secret, and don't need a redirect, but from the readme, if I try to insert
export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
it says syntax error:invalid syntax
If I insert
SPOTIPY_CLIENT_ID='your-spotify-client-id'
SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
it says spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable.
how can I set a variable if it won't see it? I don't think the code works.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of
you can just do
or
This is why in the issue you created I suggested you to start with the example in the readme
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried in various places, it gives errors on spotifyclientcredentials.
I don't have environmental variables set up so maybe that's why, but I don't want to do that because it might compromise my other codes that were custom made to work with a mac shortcut program I use and use Oauth and Oauth2 in code so I never had to set the variable it's all in code.
I just don't know anything about python to comprehend the readme or docs, so it's pointless unless you post a gist with everything in place.
appreciate you trying anyway, I understand it's frustrating talking to people who know nothing of coding.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greeneryAO I've already pointed you towards the example in the README.
This simple example will allow you to authenticate:
https://github.com/plamere/spotipy#without-user-authentication
Just replace
YOUR_APP_CLIENT_ID
andYOUR_APP_CLIENT_SECRET
by your actual credentials.If it doesn't work, let us know because it's not normal.
Once it works, you can start coding on your task #702
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did.
spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable.
I give up.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not the simple example from the README. You should first try
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, well yeah, that works, because it's simple all I have to do is add credentials, but that's not much help to me I'm trying to either get this script or that person from #702 script to work and I don't know where or what to place where, and not to sound like a dick I don't want to learn any coding just would appreciate a gist or py file where I can put my credentials without setting permanent environmental variables that could screw up my existing setup.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well now that you have the main authentication bit working, you can try the other example and replace these 2 lines by what you know works:
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I want you to know that even though we will always help and unblock you on spotipy-related issues here, we're not here to write code for you and efforts on your side are expected
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok well thanks, if it works it works, if it doesn't it doesn't, I never asked anyone to do my work or write me a code and I wouldn't because that's obnoxious. I only asked if it was possible, he volunteered nicely an already done code but probably expected some rudimentary knowledge level that I had to make it work that I didn't have.
f420247
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usage: Untitled.py [-h] -a ARTIST
Untitled.py: error: the following arguments are required: -a/--artist
a new error message so that's good, I think it wants me to insert artist ID somewhere.