Return a list of articles matching the supplied text.
http://churnalism.com/api/search/
This API must be invoked via a POST. GETs will be ignored. The amount of text typically searched for is large enough that encoding it in the url for a GET becomes a little unwieldly.
The results are returned as json.
textsuccesserror will be the only other field returned.errorarticlessourcejournalistedscorequery-timeimport urllib # for urlencode
import urllib2
url = 'http://churnalism.com/api/search/'
values = {'text' : 'Grapefruit are awesome'}
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
json = response.read()
print json