I'm trying to do a google search for Web/News/Images using python from my 
web server. Until yesterday, things were fine, and we were able to retrieve 
the results.

>From today morning, we're having issues with getting results from google 
'Web' search using this method. Nothing else changed in our server or 
config. 'News' and "image' results are still being retrieved fine, only web 
search seems to be a problem. Can someone please help.

Here's the code snippet :

url='http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=baby&start=1&rsz=8'
search_response = urllib.urlopen(url)
search_results = search_response.read()
results = json.loads(search_results)
data = results['responseData']['results']

Result : 'NoneType' object has no attribute '__getitem__'

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/421055ac-275f-4da8-8740-88533cd63e2b%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to