mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
19 lines
494 B
Python
19 lines
494 B
Python
from spotipy.oauth2 import SpotifyClientCredentials
|
|
import spotipy
|
|
|
|
|
|
birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP'
|
|
|
|
client_credentials_manager = SpotifyClientCredentials()
|
|
spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
|
|
|
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']))
|
|
|