Skip to content

A Spotify Dashboard Web-App made with Streamlit and Python which display my listening data colleced by Spotify.

Notifications You must be signed in to change notification settings

arv-anshul/spotify-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Dashbord Web App

This web app made with python + pandas + streamlit. This app uses the user's listening data which is downloaded from the spotify website.

Clone this repository to run the web app by running these following commands:

# To install streamlit library
pip install streamlit

# To open the streamlit web app in your browser
streamlit run 1_🗒️_README.py

Process:

  1. Download the requested data from spotify. And merge similar files.
  2. Also delete credential files. Some files may contains your spotify login ID.
# File Structure:
.
├── 1_🗒️_README.py
├── README.md
├── __init__.py
├── data_files
│   ├── AllPlaylists.json
│   ├── ListeningHistory.json
│   └── unorganized_data
│       ├── Playlist1.json
│       ├── Playlist2.json
│       ├── StreamingHistory1-0.json
│       ├── StreamingHistory1-1.json
│       ├── StreamingHistory2-0.json
│       └── StreamingHistory2-1.json
├── manage_data_file.py
└── pages
    ├── 2_💬_Overview.py
    ├── 3_🗂️_Playlist.py
    └── 4_🎙_Songs & Artists.py
  1. Did some EDA on ListeningHistory.json files to get some MoM and YoY insights.
  2. On AllPlaylists.json files:
    1. Import the file with pd.read_json().
    2. Normalize it with pd.normalize_json(data, record_path, record_prefix, meta, meta_prefix).
    3. Then drop some blank columns.
    4. Finally, apply pd.merge() to merge the df on 'name' column.

Created by arv-anshul

  • I first did some analysis on this data with jupyter notebook about 6 months ago.
  • But now I learned the streamlit (a python library which helps to create web apps).
  • Then, I created this my spotify listening data dashboard with streamlit.

About

A Spotify Dashboard Web-App made with Streamlit and Python which display my listening data colleced by Spotify.

Topics

Resources

Stars

Watchers

Forks

Languages