a simple spotify playlist analyzer.
this tool takes a spotify playlist/album link as input and returns details for each song:
- name of the song
- artist of the song
- length of the song
- whether or not the song is explicit (y/n)
- the tempo of the song in bpm
- the energy (made-up metric by spotify)
- the danceability of the song (made-up metric by spotify)
to install this application, the following needs to be done:
- set up a project with spotify here. The parameters here are irrelevant. i've set the redirect uri to
http://localhost:8080
. - clone this repository:
git clone https://github.com/phntxx/playlist-analyzer
- copy
config.template.yml
toconfig.yml
:cp config.template.yml config.yml
- edit
config.yml
. add the client id, client secret and redirect uri you got in step 1. - create a new python virtual environment and enter it:
python3 -m venv venv source ./venv/bin/activate
- install all dependencies:
python3 -m pip install -r requirements.txt
- run
playlist-analyzer
:python3 main.py