explicitly use `python3` in examples

pull/50/head
Nicolai Weitkemper 2023-03-27 17:42:22 +02:00 committed by GitHub
parent 0ccf12c9c7
commit 3c3e8f19e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -7,15 +7,15 @@ To run the script, [save it from here](https://raw.githubusercontent.com/caseych
You can run the script from the command line:
python spotify-backup.py playlists.txt
python3 spotify-backup.py playlists.txt
or, to get a JSON dump, use:
python spotify-backup.py playlists.json --format=json
python3 spotify-backup.py playlists.json --format=json
By default, it includes your playlists. To include your Liked Songs, you can use:
python spotify-backup.py playlists.txt --dump=liked,playlists
python3 spotify-backup.py playlists.txt --dump=liked,playlists
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.