spotify-random
A simple Python script which generates a Spotify playlist containing music randomly selected from a users' existing playlists.
Setup
- Register app at https://developer.spotify.com/my-applications/
- Edit your
~/.bashrc
to export the following values:
export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
export SPOTIPY_USERNAME='your-spotify-username'
Installation
Install latest version of Spotipy:
pip install git+https://github.com/plamere/spotipy.git --upgrade --user
Run the program:
python3 main.py