On 5 Jul 2012, at 7:19 AM, adohertyd wrote: > That's the thing, I don't know where it is being called or why! I haven't > specified it, so I'm assuming it's coming from this block of code: > >> import requests >> bing = >> "https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Query=%(term)s&$top=50&$format=json" >> API_KEY= 'mykey' >> term = __process() >> r = requests.get(URL % {'term': urllib.quote(term)}, auth=('', API_KEY)) >> bingresults = r.json['d']['results'] >
Don't you mean something like term = __process().get('term')?