mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +00:00
Update search.py
str is a keyword. Refactored variable to search_str.
This commit is contained in:
parent
8d0ab315cf
commit
a19176d22e
@ -5,10 +5,10 @@ import sys
|
|||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
str = sys.argv[1]
|
search_str = sys.argv[1]
|
||||||
else:
|
else:
|
||||||
str = 'Radiohead'
|
search_str = 'Radiohead'
|
||||||
|
|
||||||
sp = spotipy.Spotify()
|
sp = spotipy.Spotify()
|
||||||
result = sp.search(str)
|
result = sp.search(search_str)
|
||||||
pprint.pprint(result)
|
pprint.pprint(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user