spotipy/examples/client_credentials_flow.py
2015-04-01 16:09:54 +02:00

11 lines
288 B
Python

from spotipy.oauth2 import SpotifyClientCredentials
import spotipy
import pprint
client_credentials_manager = SpotifyClientCredentials()
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
search_str = 'Muse'
result = sp.search(search_str)
pprint.pprint(result)