Closed schebook closed 6 months ago
I'll also add that I attempted to use the client credentials manager but this unfortunately does not recognize Spotify created playlist IDs.
You can pass open_browser=False
to the SpotifyOAuth constructor
Any updates yet? I should also add that you might want to expose the port for the redirect url if you didn't do that already.
Hey @dieser-niko ! I've been reworking my whole code and making it a bit more efficient / easier to manage. I'm going to try to dockerize it by giving it access to my .cache file and see if it will no longer have to authorize.
I opened the port but no luck with that. If all else fails, I may try to create a flask server to handle authentication.
That normally shouldn't be a problem. I can help you with Docker in about 3 to 4 hours if you want to.
I appreciate your help! I actually got it to containerize and run within Docker. Passing the .cache file into the container allows it to ride off the former authentication.
Hi All,
Trying to containerize my spotipy program in Docker so that I can host it on my Linux server. This is my first time working with Docker and said Linux server, so please bear with me.
Below is my code:
And this is what I have going on in my Dockerfile:
I build my spotify instance in docker and then run the following to establish my environment variables:
The error that I'm getting suggests that there's an issue when spotify's authentication tries to launch a webpage. Is there a way to get around this? Eager to learn! Thanks.