From de9b99afc16addb8575ae0463292e1d64a963f18 Mon Sep 17 00:00:00 2001 From: Ryan Choi Date: Fri, 9 May 2014 00:34:08 -0700 Subject: [PATCH] spotipy --- examples/search.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/search.py diff --git a/examples/search.py b/examples/search.py new file mode 100644 index 0000000..cd10aa8 --- /dev/null +++ b/examples/search.py @@ -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)