Re: [web2py] Re: Dict object has no attribute 'rstrip'

2012-07-05 Thread adohertyd
Ok, I've gotten around that little problem by doing the following: r = requests.get( "https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Query=%(term)s&$top=50&$format=json" % __process(), auth=('', API_KEY)) It works for some reason! The problem now is outputting the json data but

Re: [web2py] Re: Dict object has no attribute 'rstrip'

2012-07-05 Thread Jonathan Lundell
On 5 Jul 2012, at 8:04 AM, adohertyd wrote: > Oh I see now. Ok tried to implement that still no joy. I'm trying a number of > different things still no luck. It's just a matter of perseverance I think! Show your current code, please. > > On Thursday, 5 July 2012 15:49:50 UTC+1, Jonathan Lundel

Re: [web2py] Re: Dict object has no attribute 'rstrip'

2012-07-05 Thread adohertyd
Oh I see now. Ok tried to implement that still no joy. I'm trying a number of different things still no luck. It's just a matter of perseverance I think! On Thursday, 5 July 2012 15:49:50 UTC+1, Jonathan Lundell wrote: > > On 5 Jul 2012, at 7:47 AM, adohertyd wrote: > > No that's not it either J

Re: [web2py] Re: Dict object has no attribute 'rstrip'

2012-07-05 Thread Jonathan Lundell
On 5 Jul 2012, at 7:47 AM, adohertyd wrote: > No that's not it either Jonathan. The problem I think is with the {'term' : > urllib.quote(term)}. I think that because 'term' is a dict type, the > urllib.quote is having issues with it. That's what I mean. In the case of blekko and entireweb, you'r

[web2py] Re: Dict object has no attribute 'rstrip'

2012-07-05 Thread adohertyd
No that's not it either Jonathan. The problem I think is with the {'term' : urllib.quote(term)}. I think that because 'term' is a dict type, the urllib.quote is having issues with it. On Thursday, 5 July 2012 14:55:06 UTC+1, adohertyd wrote: > > Me again! I don't know why I am getting this error