avertin / spotify_data

Python script to get data from the Spotify API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Public Playlist Data

Python script to get data from the Spotify API.

Instructions

  1. Add usernames to the array and set your desired filename. If you signed up for Spotify with Facebook, your username is a little tricky to find. On your profile page in the desktop application, click on the '...' menu next to your profile picture. Select the 'Copy Spotify URI' and paste it somewhere. Your username is the series of numbers.
usernames = ['']
filename = "default.csv"
  1. Follow instructions from Spotify to create a developer application. After creating a develoepr application, add the client id and secret to the script.
client_id = ''
client_secret = ''
  1. In a terminal window, navigate to the folder containing the script file. Run the script. (Download Python if you don't already have it.)
python3 spotify_playlist_to_csv.py

About

Python script to get data from the Spotify API


Languages

Language:Python 100.0%