/SpotifyPlayground

scripts and other code for interacting with the Spotify API.

Primary LanguagePythonMIT LicenseMIT

SpotifyPlayground

scripts and other code for interacting with the Spotify Web API.

For more on using the Spotify Web API and for generating your credentials, go here.

SpotifyPlaylistExporter: playlists in, csv of tracklistings out

Can't remember if you've used a track in a playlist before? Can't remember what playlist you put that track on?

SpotifyPlaylistExplorer will take a list of public Spotify Playlist URIs (playlists.txt) and return the ordered tracklisting from those playlists.

If you are having trouble finding the playlist URI, try this link.

Usage

tl;dr: python processPlaylists.py

To execute this you will need:

  • a config.json that looks like:
{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET"
}
  • a playlists.txt that looks like:
spotify:playlist:6PddocD482We229sj3xoIl
spotify:playlist:0jdLcnwfqplEFvhRLL4KH0

(etc.)

image

You can optionally specify a delimiter if the default (;;;) doesn't work for you:

python processPlaylists.py --delimiter "@|@"