This Flask app makes use of the Spotify recommendations endpoint to dynamically generate a playlist based on up to 5 seed artists and or/tracks. It will then add the playlist to your account and provide links to open in the browser or desktop app.
To run this app locally:
- Clone repo and
cd
into it - Create python virtual environment and activate it
- Install the requirements with
pip install -r requirements.txt
- Update the following variables in
config.py
APP_SESSION_KEY
: can be anythingCLIENT_ID
: generate by registering an application hereCLIENT_SECRET
: generate by registering an application here
- Add
http://127.0.0.1:8080/callback/q
to the Redirect URIs in the Spotify console for you newly registered app - Run
python app.py
- Navigate to http://127.0.0.1:8080/