update README.md

pull/45/head
Boris 2022-04-23 19:18:21 +03:00
parent e63f3e4663
commit aa0dee1ba4
1 changed files with 6 additions and 2 deletions

View File

@ -3,16 +3,20 @@ spotify-backup
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! 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/caseychu/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. To run the script, [save it from here](https://raw.githubusercontent.com/caseychu/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. For ease of import into other music streaming services, you can choose to output titles and artists only, in the format of `TITLE - ARTIST`.
You can run the script from the command line: You can run the script from the command line:
python spotify-backup.py playlists.txt python spotify-backup.py playlists.txt
or, to get a JSON dump, use: To get a JSON dump, use:
python spotify-backup.py playlists.json --format=json python spotify-backup.py playlists.json --format=json
To output titles and artists only, use:
python spotify-backup.py playlists.txt --format=plain-txt
By default, it includes your playlists. To include your Liked Songs, you can use: By default, it includes your playlists. To include your Liked Songs, you can use:
python spotify-backup.py playlists.txt --dump=liked,playlists python spotify-backup.py playlists.txt --dump=liked,playlists