mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
17 lines
245 B
Python
17 lines
245 B
Python
|
|
# shows artist info for a URN or URL
|
|
|
|
import spotipy
|
|
import sys
|
|
import pprint
|
|
|
|
if len(sys.argv) > 1:
|
|
username = sys.argv[1]
|
|
else:
|
|
username = 'plamere'
|
|
|
|
sp = spotipy.Spotify()
|
|
sp.trace = True
|
|
user = sp.user(username)
|
|
pprint.pprint(user)
|