Skip to content

Instantly share code, notes, and snippets.

@ryanpersaud
Last active January 30, 2022 22:32
Show Gist options
  • Save ryanpersaud/0afc735efbcb1ccad6e2da882a712574 to your computer and use it in GitHub Desktop.
Save ryanpersaud/0afc735efbcb1ccad6e2da882a712574 to your computer and use it in GitHub Desktop.

Quick and dirty Spotify playlist export:

  1. Login to the Spotify web client
  2. Open the Developer Tools (Click on the Kebab Menu -> More Tools -> Developer Tools) and then click on the Network tab
  3. Click on a Playlist in the browser Window
  4. In the Network tab, look for a request to tracks?...
  5. Right-click the request, and select Copy -> Copy as cURL (bash)
  6. Paste the request into a bash shell and append |jq -r '.items[] | "\(.track.name)|\(.track.album.name)|\(.track.artists | map(.name) | join(","))"' This should produce a list of the tracks in the playlist with the song, album, and artist(s) separated by a pipe (|)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment