spotify_tools.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export environment variables
4
Create a Spotify access token
Create a Spotify OAuth user access token with
user-read-private and the playlist scopes required by your playlist visibility: playlist-modify-public and/or playlist-modify-private. See Spotify authorization scopes.5
Run the example
Save the code above as
spotify_tools.py, then run: