A collection of utility scripts to do some cool stuff with Spotify.
- Setup an application in Spotify's Developer Dashboard. You must have a Spotify Premium account to do so.
- In your application, set redirect URIs required for the Authorization Code Flow. The URI does not need to be a valid web address (i.e.
http://localhost:9090
is fine).
- In your application, set redirect URIs required for the Authorization Code Flow. The URI does not need to be a valid web address (i.e.
-
Install Spotipy.
pip3 install spotipy
-
Set the environment variable
SPOTIPY_REDIRECT_URI
equal to what was set in for your application in the Spotify Developer Dashboard.export SPOTIPY_REDIRECT_URI="http://localhost:9090"
- Playlist name
- The remaining arguments are Spotify playlist IDs.
-
Example Usage:
python3 concatenate_playlists.py playlistName playlistId1 playlistId2 playlistId3