Skip to content
A Python script that exports all of your Spotify playlists.
Python
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of caseychu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
spotify-backup.py

README.md

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!

Usage:

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

You can’t perform that action at this time.