This is a script that uses spotify API to search for an artist, displaying there top tracks and albums released in spotify.
You need to have python3
along with your spotify user token
- Clone the repo, such that you have the script in your device
git clone https://github.com/adiaux/SpotifyTopTrack.git
-
Save your token in a file
secret.py
in the variable spotify_token -
Script is ready to run.
python3 app.py -h
The documentation to understand and use Spotify api is
Inspired by a reddit thread 😄