Python script for creating a Spotify playlist based on streaming history for a specific time period (data from "Download your data")
Partly based on: How To Create Spotify Playlist Using Python! - Kalyan Codes
- Download your data (including the streaming history) from the Spotify Privacy Settings (at the bottom of the page).
- Go to the Spotify Developer Dashboard and login with your Spotify account.
- Create a new app called "spotify-history-playlist". App description: "Creating a playlist based on the listening history (data from "Download your data")".
- Click EDIT SETTINGS, add http://127.0.0.1:8080/ as Redirect URI and save.
- Note Client ID and Client Secret.
- Place the "MyData"-folder (extracted from the requested and downloaded Spotify data) in the same folder like the spotify_history_playlist.py script and the config_template.py.
- Rename config_template.py to config.py.
- Fill config.py with your data (Spotify username (not mail adress), Client ID, Client Secret). If you don't know your username you can find it on the Spotify Account Overview.
- Execute spotify_history_playlist.py.
- Follow the instructions in the program and in the browser (for giving access rights).
- Enjoy the music listened in the history. :)