mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 17:23:53 +00:00
20 lines
464 B
Python
20 lines
464 B
Python
# shows artist info for a URN or URL
|
|
|
|
import spotipy
|
|
from spotipy.oauth2 import SpotifyOAuth
|
|
|
|
sp = spotipy.Spotify(auth_manager=SpotifyOAuth())
|
|
|
|
response = sp.featured_playlists()
|
|
print(response['message'])
|
|
|
|
while response:
|
|
playlists = response['playlists']
|
|
for i, item in enumerate(playlists['items']):
|
|
print(playlists['offset'] + i, item['name'])
|
|
|
|
if playlists['next']:
|
|
response = sp.next(playlists)
|
|
else:
|
|
response = None
|