Update README.md

pull/4/head
Casey Chu 2014-12-24 02:18:12 -08:00
parent 525565e882
commit 58d8f0bf4e
1 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,14 @@
spotify-backup
==============
A Python script that exports all of your Spotify playlists. (Useful for paranoid Spotify users like me who are afraid that one day Spotify will go under and take all of our playlists with it!) [Save the script](https://raw.githubusercontent.com/bitsofpancake/spotify-backup/master/spotify-backup.py) and run it like so:
A Python 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](https://raw.githubusercontent.com/bitsofpancake/spotify-backup/master/spotify-backup.py) 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
This'll pop open a web browser letting you authorize the script to access the Spotify API. Then it'll download your playlists and save a tab-separated file `playlists.txt` with your playlists that you can open in Excel. (As a bonus, you can copy-paste the rows into a Spotify playlist.) Collaborative playlists and playlist folders don't show up in the API, sadly.
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](https://developer.spotify.com/web-api/console/get-playlists/) 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.