A Jupyter notebook for visualizing a user's top artist / track data in Spotify.
Time range can be configured by setting the t_range
variable. Acceptable values include:
short_term
medium_term
long_term
Track Attributes:
- Danceability
- Energy
- Loudness
- Speechiness
- Acousticness
- Instrumentalness
- Liveness
- Valence
- Tempo
- Sign up for a free Spotify Developer account.
- Create a custom Spotify app via the App Dashboard, adding
http://localhost:8080
as a valid redirect URI. - Add your Spotify as a valid user under the 'Users and Access' section of the custom Spotify app.
- Rename
sample.env
to.env
. - Populate the missing
.env
values from the custom Spotify app. - [OPTIONAL] Enable Python virtual environment.
- Install requirements:
pip install -r requirements.txt
. - Run the notebook:
jupyter notebook
.
*** OAuth credentials are stored in .cache. Remove this file to recreate credentials. ***