using google search api for python

Maric Michaud maric at aristote.info
Wed May 23 19:21:48 EDT 2007


Larry Bates a écrit :
> Gerardo Herzig wrote:
>> 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.



More information about the Python-list mailing list