Added timeout test

This commit is contained in:
Paul Lamere
2016-12-31 09:52:03 -05:00
parent b9af5ad719
commit d18892a99e
2 changed files with 24 additions and 0 deletions

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:
search_str = sys.argv[1]
else:
search_str = 'Radiohead'
sp = spotipy.Spotify(requests_timeout=.1)
result = sp.search(search_str)
pprint.pprint(result)