ajax.googleapis.com/ajax/services/search/web?v=1.0 is not getting result in server

659 views
Skip to first unread message

naveen.n...@seaant.com

unread,
May 15, 2014, 1:35:57 AM5/15/14
to google-ajax...@googlegroups.com

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__'

Jeremy Geerdes

unread,
May 15, 2014, 9:26:05 AM5/15/14
to google-ajax...@googlegroups.com

I tested the URL you provided, and the search seems to be responding correctly. I also entered the responding JSON into my browser, and it parsed appropriately.

That said, be advised that the Web, News, and Image Search API is slated to be discontinued at any time. I would be very, very reluctant to continue to depend on them for any functionality. You should be actively working to migrate to some other solution if this is a mission-critical application.

jg

--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
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 google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages