mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 17:23:53 +00:00
10 lines
263 B
Python
10 lines
263 B
Python
# Shows a user's playlists
|
|
|
|
import spotipy
|
|
from spotipy.oauth2 import SpotifyOAuth
|
|
|
|
sp = spotipy.Spotify(auth_manager=SpotifyOAuth())
|
|
|
|
results = sp.current_user_playlists(limit=50)
|
|
for i, item in enumerate(results['items']):
|
|
print("%d %s" % (i, item['name'])) |