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
On May 15, 2014 6:57 AM, <naveen.nagara...@seaant.com> wrote:

>
> 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
> google-ajax-search-api@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-search-api+unsubscr...@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<https://groups.google.com/d/msgid/google-ajax-search-api/421055ac-275f-4da8-8740-88533cd63e2b%40googlegroups.com?utm_medium=email&utm_source=footer>
> 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-search-api+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/CAF4cwg_WpBENRFvHsHtRJBA_Vh6qhMg7cJ6tkGH_EJrKdg0jSQ%40mail.gmail.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-search-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to