This project is to use Spotify API endpoints to pull back personal user data.
"Spotify is a digital music, podcast, and video streaming service that gives you access to millions of songs and other content from artists all over the world." - Spotify
As an avid user of Spotify for over 10 year and a proud premium subscriber, I though it would be interesting to see my music taste/trends with the data that Spotify has on their back end. This project will be pulling my personal data from Spotify's API Endpoints and perform analysis on it. The project will also provide instruction on how you can pull your own Spotify data.
This project will pull your most recently played tracks and your top 50 tracks from the past 6 months. The script will gather the data using Spotify's API and export the results in an excel file.
Coming soon
- Python v3.7
- Jupyter Notebook - Markdown
- PyCharm - Integrated Development Environment (IDE)
- README.md - Markdown of projects
- config.py - Contains Spotify API credentials
- Spotify_Data_Scrape.ipynb - Jupyter Notebook for automated code.
- requirements.txt - version of python libraries used.
You will need:
- Your Client ID
- Your Client Secret
- Your personal username
- Register a Redirect URI
- Your auth_token
See this documentation on how to get access to Spotify's API.
Q. What should I do when client script errors?
A. The Spotify API could be potentially down; wait 1 hour and try again.
Q. What happens if Spotify notifies me that API endpoints are changing?
A. This will require repointing and testing.
All API points are covered in this documentation.
Updating of the endpoints and the retesting of the script will need to take place.
Q. What happens if I were to delete the python script?
A. The script is centrally managed via GitHub, in which it tracks version control and can be referenced to restore any scripts used for the project.
- Spotify Web API - Authorization Guide: Details on gaining access to the API.
- Spotify API References: A full list of the objects returned by the endpoints of the Spotify Web API.
Created Date: 08/03/2020
Created By: Nick Drake