Skip to content

Instantly share code, notes, and snippets.

@Achifaifa
Created November 1, 2014 11:47
Show Gist options
  • Save Achifaifa/f1d6ec700ee93e7f961e to your computer and use it in GitHub Desktop.
Save Achifaifa/f1d6ec700ee93e7f961e to your computer and use it in GitHub Desktop.
echonest search script
#! /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