This commit is contained in:
Ryan Choi 2014-05-09 00:34:08 -07:00
parent 9105e58562
commit de9b99afc1

14
examples/search.py Normal file
View File

@ -0,0 +1,14 @@
# 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)