Closed AtomicNess123 closed 4 years ago
It looks like the "liked" songs are located at: https://open.spotify.com/user/{user_id}/collection
I tried substituting 'collection' for 'playlists' in the code, but it doesn't work. There's nothing in the Spotify API reference about it.
Edit: Ahh, it's called 'Saved Music' internally.
https://open.spotify.com/user/{user_id}/tracks
is the location, and it requires a separate authentication type, but this should be a few lines changed. I'm working on a PR.
Great, thanks! Is this already implemented in the last python script?
So it hasn't been merged in the master? I just used the master but can't find where the liked songs are. Which heading does it have? "Liked songs" does not appear. Thanks!
Ahh, sorry, I linked you to the master instead of feature branch. Note that you need to use the command as
python spotify-backup.py --scope user-library-read
Thanks! If I do
python spotify-backup.py playlists.txt
it won't work? Also, what heading do the liked songs have? I can't find them (I have over 2000 tracks!).
You can put the filename at the end, but you need the --scope user-library-read
part in there to get the liked songs -- and then it will only get the liked songs, no other playlists.
Thanks so much!
You can put the filename at the end, but you need the
--scope user-library-read
part in there to get the liked songs -- and then it will only get the liked songs, no other playlists.
BTW, it won't work for me.
spotify-backup.py: error: argument --scope: invalid choice: 'user-library-read' (choose from 'playlist-read-private', 'playlist-read-collaborative')
Are "liked songs" copied as a playlist? I couldn't find my liked songs in the exported file. Otherwise, awesome tool.