mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
15 lines
221 B
Python
15 lines
221 B
Python
# shows artist info for a URN or URL
|
|
|
|
import spotipy
|
|
import sys
|
|
import pprint
|
|
|
|
if len(sys.argv) > 1:
|
|
str = sys.argv[1]
|
|
else:
|
|
str = 'Radiohead'
|
|
|
|
sp = spotipy.Spotify()
|
|
result = sp.search(str)
|
|
pprint.pprint(result)
|