mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-08-05 14:48:28 +00:00
spotipy
This commit is contained in:
14
examples/search.py
Normal file
14
examples/search.py
Normal 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)
|
Reference in New Issue
Block a user