Simple project that retrieve data using SpotifyAPI and automatically stores it in sqlite database.
Used reference: https://developer.spotify.com/documentation/web-api/reference/get-recently-played
Feel free to use any other to get your own data.
Live Example: (WIP Integration with Personal Website)
- Clone the project
git clone https://github.com/Rantoryu/SpotifyAPI.git/
- Install dependencies
pip install -r requirements.txt
- Create Spotify App and Generate Token
Generate token using Client ID and Client Secret from your own APP (https://developer.spotify.com/dashboard)
python.exe .\gettoken.py
- Retrieve last played tracks
Retrieve last played tracks from last 7 days (Limit 50 tracks) by running:
python.exe .\spotify.py
It will create tracks.sqlite database.
- Simple convert of database to dataframe with printing it out (Optional)
python.exe .\convert.py
Python, Sqlite
Give a ⭐️ if this project helped you!