python-3.xlibspotify

Accesing my account on spotify and playing liked songs python


I want to create a program that, if called, will access my liked songs playlist on Spotify and play either a random song or a song that has been called. I know that I should use the Spotify library, however, I don't really know how to achieve my goal, as most tutorials are about creating a new playlist or something of that nature, not accessing an already present playlist like liked songs.

Any advice will be appreciated:)


Solution

  • You could use the pyspotify library. This part of the documentation goes in detail on how to play music and mess with playlists.