mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
Update simple0.py
Import oath
This commit is contained in:
1 parent
0c453c9945
commit
c3bae42b9e
1 file changed
+4
-1
+4
-1
@@ -1,5 +1,8 @@
|
||||
import spotipy
|
||||
sp = spotipy.Spotify()
|
||||
from spotipy.oauth2 import SpotifyClientCredentials
|
||||
|
||||
client_credentials_manager = SpotifyClientCredentials()
|
||||
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
||||
|
||||
results = sp.search(q='weezer', limit=20)
|
||||
for i, t in enumerate(results['tracks']['items']):
|
||||
|
||||
Reference in new issue
Block a user