Created
November 1, 2014 11:47
-
-
Save Achifaifa/f1d6ec700ee93e7f961e to your computer and use it in GitHub Desktop.
echonest search script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import json,urllib2 | |
jsonshit=json.loads(urllib2.urlopen("http://developer.echonest.com/api/v4/song/search?results=100&api_key=MZFEPELDSKFX4WAMA&artist=%s"%raw_input("group? ",)).read()) | |
for x in jsonshit["response"]["songs"]: print "%s - %s"%(x["artist_name"],x["title"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment