- Do you need a simple way to get the cover art of the song you are currently listening to?
- Are you tired of having to code everything by yourself?
- Raspberry Pi projects
- E-ink displays
- And everything else you can think of
Spotify-image-py uses Spotify's proprietary API to log you safely into the application via a QR-code.
Create a new application at https://developer.spotify.com/dashboard/ and copy your client ID as well as client secret. Then you simply use spotify-image-py as such:
from spotifyimage import SpotifyUser
from PIL import Image
spotify_user = SpotifyUser(client_id, client_secret, "0.0.0.0", 3030)
img, data = spotify_user.get_currently_playing_state()
print(f"{data["name"]} by {data["artists"]}")
img.show()
Spotify-image-py cannot store your access token between different sessions. You will have to log in every time your restart your script.
Please log issues here on GitHub and contribute if you can!