1Links as follows:
2https://github.com/plamere/spotipy
3https://tekore.readthedocs.io/en/stable/
1import spotipy
2from spotipy.oauth2 import SpotifyClientCredentials
3
4birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP'
5spotify = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials())
6
7results = spotify.artist_albums(birdy_uri, album_type='album')
8albums = results['items']
9while results['next']:
10 results = spotify.next(results)
11 albums.extend(results['items'])
12
13for album in albums:
14 print(album['name'])
15