Skip to content

gha7all/splotify

Repository files navigation

Plotting spotify straming history by using plotly.

What is Splotlify?

Ever wanted to know more about your listening activities on spotify? Your most listened tracks, favorite artists, etc? Splotify is a micro web application that shows you your listening activities, favorite artists, most listened tracks and also your mood based of the songs you listen to.

First, You have to have the json file which spotify gives you ter making a request, then Splotify gets each song's audio analysis and plots your mood.

This article shows you how you can get your spotify personal data.

How to personalize Splotify?

Go to spotify developer's dashboard create an app and add your CLIENT_ID and CLIENT_SECRET in ./config.py.

Replace the StreamingHistory0.json file with yours. Run streaming_history.py file to get audio features:

python streaming_history.py

It takes a while to run because that's where the app gets data from API.

Then enable flask virtual environment and run these commands:

export FLASK_APP=run.py
export FLASK_ENV=development
flask run

Dependencies

  • Flask
  • Pandas
  • Plotly
  • Spotipy

Demo