This repository allows you to access your Spotify library programmatically, enabling systematic organization of your music into playlists, all through the power of data science. If you are looking for a no code option, check out Organize Your Music. If you want to create customized mood playlists, see Playlist Generator, though note this will frequently include music from outside your library.
- Clone this repo.
- Update the
parameters.json
file with your Spotify username. - Go to Spotify for Developers.
- Click "Create app".
- Complete the "App name", "App description", and "Website" fields.
- For "Redirect URI", enter the URI exactly as it appears in
parameters.json
. - Accept the agreement and click "save".
- Copy the "client_id" and "client_secret" into
parameters.json
.
- Create your conda environment with
environment.yml
.
After updating the parameters.json
file, run the following:
python retrieve_user_data.py -p parameters.json
If prompted, copy-paste the URL from the browser window that opens into your command prompt.