jdemaeyer / spoqify

Spotify playlist anonymizer.
https://spoqify.com/
MIT License
47 stars 0 forks source link

Generate longer anonymized playlists #5

Open AR15senalOfCode opened 5 months ago

AR15senalOfCode commented 5 months ago

Hey there! I have noticed that if I open an playlist in a browser without being logged into spotify, it shows 80 songs in this playlist. Anonymizing this playlist generates a playlist with only the first 30 songs of these 80 songs though.

Love this project btw.!

jdemaeyer commented 4 months ago

Hi @AR15senalOfCode, thanks a lot for the request and for your warm words (and apologies for the late reply)!

I would absolutely love to have more tracks in the generated anonymous playlists. Unfortunately, getting the "full" track list is not that easy, because when Spoqify makes an "anonymous" HTTP request for the playlist, the HTML returned by Spotify does indeed contain only 30 tracks. We could get the additional 50 tracks by executing the Javascript referenced in that HTML (like your browser does), but that would require either some very heavy dependencies - essentially running a full browser in our backend - or reverse-engineering Spotify's internal API. While the latter is certainly possible, it would complicate our currently very simple parsing a lot, and we would probably be getting close to the limit of what could be considered "fair use" of Spotify's data.

Still, I would absolutely love to have more songs in the generated playlists, so let's keep this ticket open :)