Collects and visualize data for a user's top 50 Spotify songs and artists.
Visit the Spotify for Developers dashboard to register your app and get your credentials.
- Go to https://developer.spotify.com/dashboard/, log in and create a new app.
- In your Spotify app settings, add http://127.0.0.1:5000/ as a Redirect URI.
- Once you have created your app, get the Client ID and Client Secret, navigate to the
config.json
file in the directory and replace theclient_id
,client_secret
, andusername
with your credentials.
Running dataanalysis.py
will generate data visualizations and graphs that analyze data from your top 50 tracks and artists. You should also see a .csv
file that contains your top 50 songs, artists, and albums.
Use the following commands:
$ export FLASK_APP=app
$ export FLASK_ENV=development
$ flask run
If you don't have flask installed or are looking for an alternative, run python app.py
.
Navigate to http://127.0.0.1:5000/ to view your top songs and artists.
- Spotify Web API
- Python
- Flask
- Pandas
- Matplotlib and Seaborn
- React
- Bootstrap
- HTML/CSS