spotipy currently playing

Solutions on MaxInterview for spotipy currently playing by the best coders in the world

showing results for - "spotipy currently playing"
Ryad
05 Sep 2020
1# Get track information
2track = spotifyObject.current_user_playing_track()
3print(json.dumps(track, sort_keys=True, indent=4))
4print()
5artist = track['item']['artists'][0]['name']
6track = track['item']['name']
7
8if artist !="":
9    print("Currently playing " + artist + " - " + track)
10