mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
14 lines
341 B
Python
14 lines
341 B
Python
# Shows artist info for a URN or URL
|
|
|
|
from spotipy.oauth2 import SpotifyClientCredentials
|
|
import spotipy
|
|
import sys
|
|
import pprint
|
|
|
|
username = sys.argv[1] if len(sys.argv) > 1 else 'plamere'
|
|
auth_manager = SpotifyClientCredentials()
|
|
sp = spotipy.Spotify(auth_manager=auth_manager)
|
|
sp.trace = True
|
|
user = sp.user(username)
|
|
pprint.pprint(user)
|