Update search.py

str is a keyword. Refactored variable to search_str.
This commit is contained in:
Lucas 2014-06-23 23:15:41 -06:00
parent 8d0ab315cf
commit a19176d22e

View File

@ -5,10 +5,10 @@ import sys
import pprint
if len(sys.argv) > 1:
str = sys.argv[1]
search_str = sys.argv[1]
else:
str = 'Radiohead'
search_str = 'Radiohead'
sp = spotipy.Spotify()
result = sp.search(str)
result = sp.search(search_str)
pprint.pprint(result)