Connecting Tech Pros Worldwide Help | Site Map

using google search api for python

Gerardo Herzig
Guest
 
Posts: n/a
#1: May 22 '07
Hi all. Im looking for the pyGoogle for making google searchs y a python
script. The thing is, all im founding is an AJAX api, but the
application ill use is NOT a web app. So, someone know if there is a
pure python api that i can download and use?

Thanks!
Gerardo
Larry Bates
Guest
 
Posts: n/a
#2: May 23 '07

re: using google search api for python


Gerardo Herzig wrote:
Quote:
Hi all. Im looking for the pyGoogle for making google searchs y a python
script. The thing is, all im founding is an AJAX api, but the
application ill use is NOT a web app. So, someone know if there is a
pure python api that i can download and use?
>
Thanks!
Gerardo
The server (Google) on the other end doesn't know what type of app you
are. It just responds to XMLRPC requests. I haven't used the interface
but I'm guessing that I would use Twisted to make XMLRPC request to Google
and process the response XML payload using Elementree.

-Larry
Maric Michaud
Guest
 
Posts: n/a
#3: May 24 '07

re: using google search api for python


Larry Bates a écrit :
Quote:
Gerardo Herzig wrote:
Quote:
>Hi all. Im looking for the pyGoogle for making google searchs y a python
>script. The thing is, all im founding is an AJAX api, but the
>application ill use is NOT a web app. So, someone know if there is a
>pure python api that i can download and use?
>>
>Thanks!
>Gerardo
>
The server (Google) on the other end doesn't know what type of app you
are. It just responds to XMLRPC requests. I haven't used the interface
but I'm guessing that I would use Twisted to make XMLRPC request to Google
and process the response XML payload using Elementree.
>
Yes, you could if you have time... or you can just use the
straightforward xmlrpclib which is in stdlib. I used it with Zope and it
just works fine.

just try :

import xmlrpclib

help(xmlrpclib)

Larry, excuse for the private mail.
Closed Thread