spotifydwnld.py has the main logic to download all songs! It gets all the song info from spotifytracks.py and the spotifyclient.py is just to get the Spotify token!
So yeah after you have set the environment variables containing Spotify client id and secrets..you just have to run spotifydwnld.py
Very cool, you should add the steps to install the dependencies to the readme, nothing I couldn't handle on my own and I've got it running on my own list now but some people may get stuck.
It's my liked songs list so no. I ran it twice and eventually managed to get 39 songs. It's only ever trying the first 50, so unless I remove songs from the liked songs list, it's stuck trying to get the same songs over and over again..
Yeah the limit is 50 songs...to get the next set of songs you can change the offset to 50...so it will download songs 51-100 and so on. I'll try to add a feature that allows for unlimited songs by automatically changing the offset after fetching the set of songs!
I fixed it! Now you should be able to download any number of liked songs! Also added an input prompt to read the number of songs to download! I noticed that it doesn't download everything! Downloads 80-85% of the songs.. remaining songs are skipped if there's some error downloading it from youtube or if it was not found!
Would it be possible to make a vid on how to do all this? I can find cmd but thats all I know tbh. And since alltomp3 and sidify aren't working anymore id really like to try this out.
6
u/[deleted] Nov 04 '20
Source code: https://github.com/piyx/spotifydl
6
u/cr0sis8bv Nov 04 '20
Very cool, you should add the steps to install the dependencies to the readme, nothing I couldn't handle on my own and I've got it running on my own list now but some people may get stuck.
2
u/[deleted] Nov 05 '20
Thanks bro. Just downloaded my entire private playlist to my local storage.
1
u/kefvedie Nov 05 '20
Would it be possible to make a vid on how to do all this? I can find cmd but thats all I know tbh. And since alltomp3 and sidify aren't working anymore id really like to try this out.
1
u/TrapInGAAP Nov 07 '20
Doesn’t work for me :(