pip3 install pandas
pip3 install requests
- create a playlists.csv file with a playlist id on each line on
spotify_playlist
folder - set env variable
SPOTIFY_CLIENT_ID
andSPOTIFY_CLIENT_SECRET
to your spotify application credentials - run
python spotify_playlist/get_tracks.py
- run
python spotify_playlist/get_artists.py
export SPOTIFY_CLIENT_ID=xxxxxxxxxx
export SPOTIFY_CLIENT_SECRET=xxxxxxxxxxx
cd spotify_playlist
python3 get_tracks.py
python3 get_artists.py
before running tests for the first time run
poetry install
to run test you must set your spotify credential in environment variable like below
export SPOTIFY_CLIENT_ID_TEST=xxxxxxxxxx
export SPOTIFY_CLIENT_SECRET_TEST=xxxxxxxxxxx
poetry run pytest
export SPOTIFY_CLIENT_ID_TEST=xxxxxxxxxx
export SPOTIFY_CLIENT_SECRET_TEST=xxxxxxxxxxx
coverage run -m pytest && coverage report -m