spotipy/examples/simple1.py

17 lines
333 B
Python
Raw Normal View History

2014-08-22 13:28:19 +00:00
import spotipy
birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP'
spotify = spotipy.Spotify()
results = spotify.artist_albums(birdy_uri, album_type='album')
albums = results['items']
while results['next']:
results = spotify.next(results)
albums.extend(results['items'])
for album in albums:
2015-06-05 09:07:28 +00:00
print((album['name']))
2014-08-22 13:28:19 +00:00