spotipy/examples/simple0.py

7 lines
161 B
Python
Raw Normal View History

2014-08-22 16:10:48 +00:00
import spotipy
sp = spotipy.Spotify()
results = sp.search(q='weezer', limit=20)
for i, t in enumerate(results['tracks']['items']):
2015-06-05 09:07:28 +00:00
print(' ', i, t['name'])