callrua / spotipyutils

Automate common Spotify interaction with Python
0 stars 0 forks source link

Create a web server to serve requests #7

Open mattmooree opened 2 years ago

mattmooree commented 2 years ago

I got this working locally in flask, but not in a docker image. The main issue is the auth, specifically the redirect URI stuff. Basically, when you can't interact with the app live and input the response code, it doesn't work.

Need to figure out a different authentication method.

callrua commented 2 years ago

Keen for this functionality too, I was thinking Discord bot though.

I've been putting off figuring out auth too. Do you have your own ID/Secret for this app set-up in your Spotify Developer's dashboard?

Also, I'm working on better cli functionality so that instead of a bunch of isolated scripts with reused code (eg: auth) we will have one entry into the app with behaviour dictated by args.

So instead of:

./setlist_to_spotify.py --id <id> --setlist <setlist>

We will be able to do stuff like:

spotipyutils setlist_to_playlist --id <id> --setlist <setlist> spotipyutils genre_to_playlist --id <id> --genre

Should help with containerisation/running locally. I'll keep an eye out for how this would work with endpoints/routing in a hosted service. I'll stick you on the PR when it's done too.

mattmooree commented 2 years ago

Yeah I have my own secret set up for Spotify dev.

Nice idea improving the cli, also interested in what that looks like in python.

I was actually using this as a way to start learning html/css/flask, so I will continue building out a website. If I get it functional with authentication, I will probably host it in AWS for mates to use