mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
18 lines
347 B
Python
18 lines
347 B
Python
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:
|
|
print(album['name'])
|
|
print album
|
|
|