mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-15 19:47:25 +00:00
a19176d22e
str is a keyword. Refactored variable to search_str.
15 lines
242 B
Python
15 lines
242 B
Python
# shows artist info for a URN or URL
|
|
|
|
import spotipy
|
|
import sys
|
|
import pprint
|
|
|
|
if len(sys.argv) > 1:
|
|
search_str = sys.argv[1]
|
|
else:
|
|
search_str = 'Radiohead'
|
|
|
|
sp = spotipy.Spotify()
|
|
result = sp.search(search_str)
|
|
pprint.pprint(result)
|