mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-10 17:47:25 +00:00
18 lines
246 B
Python
18 lines
246 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)
|
||
|
|