This is a Python Webapp that uses the Spotify Data provided to you to create a simple stats page for your Spotify account. It will show you your top artists, top tracks, and top genres. It will also show you your top tracks and artists for each year.
- Go to Spotify's Privacy Settings
- Scroll down to "Download your data" and click "Request" for Account Data and Extended Streaming History
- Wait for Spotify to send you an email with a download link
- Download the data and upload it to the website
In order to utilise this repo, you also need to create a spotify developer account. Once you've done that you should be able to go to the dashboard and then create a new app.
Open the new app and then click on Settings
. In Settings get the Client ID
and Client Secret
.
- Clone the repo
- Install the requirements with
pip install -r requirements.txt
- Set the environment variable
APP_SECRET_KEY
located in.env.example
to a random string/password, alongsideCLIENT_ID
andCLIENT_SECRET
to the values you got from the Spotify Developer Dashboard - Rename
.env.example
to.env
- Run the script with
flask run
in your terminal. - Go to
127.0.0.1:5000
in your browser