mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
Improved example
This commit is contained in:
1 parent
45232a2489
commit
fdff788ff2
1 file changed
+3
@@ -15,6 +15,9 @@ sp.trace=False
|
|||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
artist_name = ' '.join(sys.argv[1:])
|
artist_name = ' '.join(sys.argv[1:])
|
||||||
|
else:
|
||||||
|
artist_name = 'weezer'
|
||||||
|
|
||||||
results = sp.search(q=artist_name, limit=50)
|
results = sp.search(q=artist_name, limit=50)
|
||||||
tids = []
|
tids = []
|
||||||
for i, t in enumerate(results['tracks']['items']):
|
for i, t in enumerate(results['tracks']['items']):
|
||||||
|
|||||||
Reference in new issue
Block a user