Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spotipy currently playing

# Get track information
track = spotifyObject.current_user_playing_track()
print(json.dumps(track, sort_keys=True, indent=4))
print()
artist = track['item']['artists'][0]['name']
track = track['item']['name']

if artist !="":
    print("Currently playing " + artist + " - " + track)
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #spotipy #playing
ADD COMMENT
Topic
Name
5+7 =