Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19390 > unrolled thread

search google with python

Started byTracubik <affdfsdfdsfsd@b.com>
First post2012-01-25 09:55 +0000
Last post2012-01-25 12:15 -0800
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  search google with python Tracubik <affdfsdfdsfsd@b.com> - 2012-01-25 09:55 +0000
    Re: search google with python Chris Rebert <clp2@rebertia.com> - 2012-01-25 02:27 -0800
      Re: search google with python Tracubik <affdfsdfdsfsd@b.com> - 2012-01-25 10:36 +0000
        Re: search google with python Jerry Hill <malaclypse2@gmail.com> - 2012-01-25 11:38 -0500
          Re: search google with python John Nagle <nagle@animats.com> - 2012-01-25 12:15 -0800

#19390 — search google with python

FromTracubik <affdfsdfdsfsd@b.com>
Date2012-01-25 09:55 +0000
Subjectsearch google with python
Message-ID<4f1fd175$0$1375$4fafbaef@reader2.news.tin.it>
Hi all,
i'ld like to make a simple program for searching images from python.
All it have to do is make a search in google images and return the link 
of the images (20 images is enough i think)

Is there any API or modules i can use?

Thanks a lot
Nico

[toc] | [next] | [standalone]


#19392

FromChris Rebert <clp2@rebertia.com>
Date2012-01-25 02:27 -0800
Message-ID<mailman.5068.1327487247.27778.python-list@python.org>
In reply to#19390
On Wed, Jan 25, 2012 at 1:55 AM, Tracubik <affdfsdfdsfsd@b.com> wrote:
> Hi all,
> i'ld like to make a simple program for searching images from python.
> All it have to do is make a search in google images and return the link
> of the images (20 images is enough i think)
>
> Is there any API or modules i can use?

https://developers.google.com/image-search/v1/jsondevguide
http://docs.python.org/library/json.html
http://docs.python.org/library/urllib2.html

Cheers,
Chris

[toc] | [prev] | [next] | [standalone]


#19393

FromTracubik <affdfsdfdsfsd@b.com>
Date2012-01-25 10:36 +0000
Message-ID<4f1fdb22$0$1380$4fafbaef@reader2.news.tin.it>
In reply to#19392
Il Wed, 25 Jan 2012 02:27:18 -0800, Chris Rebert ha scritto:

> On Wed, Jan 25, 2012 at 1:55 AM, Tracubik <affdfsdfdsfsd@b.com> wrote:
>> Hi all,
>> i'ld like to make a simple program for searching images from python.
>> All it have to do is make a search in google images and return the link
>> of the images (20 images is enough i think)
>>
>> Is there any API or modules i can use?
> 
> https://developers.google.com/image-search/v1/jsondevguide
> http://docs.python.org/library/json.html
> http://docs.python.org/library/urllib2.html
> 
> Cheers,
> Chris

thanks a lot but it say it's deprecated, is there a replacement? Anyway 
it'll useful for me to study json, thanks :)

Nico

[toc] | [prev] | [next] | [standalone]


#19404

FromJerry Hill <malaclypse2@gmail.com>
Date2012-01-25 11:38 -0500
Message-ID<mailman.5079.1327509536.27778.python-list@python.org>
In reply to#19393
On Wed, Jan 25, 2012 at 5:36 AM, Tracubik <affdfsdfdsfsd@b.com> wrote:
> thanks a lot but it say it's deprecated, is there a replacement? Anyway
> it'll useful for me to study json, thanks :)

I don't believe Google is particularly supportive of allowing
third-parties (like us) to use their search infrastructure.  All of
the search-related APIs they used to provide are slowly going away and
not being replaced, as far as I can tell.

If you just need to search images (and not Google Image Search in
particular), Bing's API appears to be supported and not about to go
away.  ( http://msdn.microsoft.com/en-us/library/dd900818.aspx )

You could, in theory, make requests to Google just like a web browser
and parse the resulting HTML, but that tends to be fragile and prone
to break.  I believe it also violates Google's Terms of Service.

-- 
Jerry

[toc] | [prev] | [next] | [standalone]


#19425

FromJohn Nagle <nagle@animats.com>
Date2012-01-25 12:15 -0800
Message-ID<4f2062f3$0$1709$742ec2ed@news.sonic.net>
In reply to#19404
On 1/25/2012 8:38 AM, Jerry Hill wrote:
> On Wed, Jan 25, 2012 at 5:36 AM, Tracubik<affdfsdfdsfsd@b.com>  wrote:
>> thanks a lot but it say it's deprecated, is there a replacement? Anyway
>> it'll useful for me to study json, thanks :)
>
> I don't believe Google is particularly supportive of allowing
> third-parties (like us) to use their search infrastructure.  All of
> the search-related APIs they used to provide are slowly going away and
> not being replaced, as far as I can tell.

    True.  The Google SOAP API disappeared years ago.  The AJAX
search widget was very restrictive, and is now on end of life
(no new users).  "Google Custom Search" only lets you search
specific sites.

    The Bing API comes with limitations on what you can do with
the results.

    The Yahoo search API went away, replaced by the Yahoo BOSS
API. Then that was replaced by a pay-per-search interface.

    Bleeko has an API, but you have to ask to use it.

				John Nagle

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web