Skip to content

A Python script that exports all of your Spotify playlists.

Notifications You must be signed in to change notification settings

ziv17/spotify-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

spotify-backup

A Python 3* script that exports all of your Spotify playlists, useful for paranoid Spotify users like me, afraid that one day Spotify will go under and take all of our playlists with it!

To run the script, save it from here and double-click it. It'll ask you for a filename and then pop open a web page so you can authorize access to the Spotify API. Then the script will load your playlists and save a tab-separated file with your playlists that you can open in Excel. You can even copy-paste the rows from Excel into a Spotify playlist.

You can also run the script from the command line:

python spotify-backup.py playlists.txt

Adding --format=json will give you a JSON dump with everything that the script gets from the Spotify API. If for some reason the browser-based authorization flow doesn't work, you can also generate an OAuth token on the developer site (with the playlist-read-private permission) and pass it with the --token option.

Collaborative playlists and playlist folders don't show up in the API, sadly.

*The last version compatible with Python 2.7 probably still works.

About

A Python script that exports all of your Spotify playlists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%