Skip to content

This repository contains python script that allows you to scrape your own Spotify data. See README.md for how to gain access to Spotify's API.

Notifications You must be signed in to change notification settings

DrakeData/Spotify_Data

Repository files navigation

spotify_logo

Spotify Data API Webscrape

This project is to use Spotify API endpoints to pull back personal user data.

Table of Contents (Coming Soon)

Description

"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.

Project Goal and High-Level Overview

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.

Project Discovery & Project Decision to Support the Project Goals

Coming soon

Tech/Framework Used

Coding Language

  • Python v3.7

Programs

Main Files in Repository

  • 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.

Getting Access

You will need:

  1. Your Client ID
  2. Your Client Secret
  3. Your personal username
  4. Register a Redirect URI
  5. Your auth_token

How to get access to Spotify API

See this documentation on how to get access to Spotify's API.

FAQ

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.

Helpful Links

Repository Information

Created Date: 08/03/2020
Created By: Nick Drake

About

This repository contains python script that allows you to scrape your own Spotify data. See README.md for how to gain access to Spotify's API.

Topics

Resources

Stars

Watchers

Forks