mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-10 17:47:25 +00:00
15 lines
249 B
Python
15 lines
249 B
Python
|
# shows artist info for a URN or URL
|
||
|
|
||
|
import spotipy
|
||
|
import sys
|
||
|
import pprint
|
||
|
|
||
|
if len(sys.argv) > 1:
|
||
|
urn = sys.argv[1]
|
||
|
else:
|
||
|
urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'
|
||
|
|
||
|
sp = spotipy.Spotify()
|
||
|
artist = sp.artist(urn)
|
||
|
pprint.pprint(artist)
|