Welcome to Spotify User Data! This is a simple repo to generate figures of one Spotify user's listening history. This project uses Spotipy, Matplotlib, and Pandas.
You will need to set up a Spotify app in the Spotify Developer Portal. When setting up the app, set the Redirect URI to http://localhost:8080
. After creating the app, copy the Client ID and Client Secret to use in the .env
file in this repo.
Have Python3 and Pip3 installed on your machine.
Run the following commands
chmod +x ./scripts/install.sh
./scripts/install.sh
Fill in the .env
file with your Client ID and Client Secret.
If you wish, modify the NUMBER_OF_SONGS
, TIME_RANGE
, FIG_OUTPUT_PATH
to fit your preferences.
chmod +x ./scripts/run.sh
./scripts/run.sh
For subsequent runs after the first run:
./scripts/run.sh