internet searching program

BAnderton blake.anderton at gmail.com
Sun Aug 10 10:56:07 CEST 2008


I was doing something very similar on my windows XP machine a year ago
(with python 2.4) and used Mayukh Bose's Internet Explorer controller
(see http://www.mayukhbose.com/python/IEC/index.php for details/
download).  It worked very nicely for my needs and was rather
intuitive (generally much easier and required fewer brain cells than
using urllib) ... here's some clips from the project:

        # this window will be for our initial data pull-in
        ie = IEController()
        ie.Navigate('http://<whateverYourSiteNameIs>')
        ie.ClickButton(caption='Advanced')
        ...
        ie.SetInputValue('search_string',strUserID)
        ie.ClickButton(name='image')
        ...
        strAllText = ie.GetDocumentText() # gets all html source code
from current page.
        ...
        ie.CloseWindow()

I wish someone could make a similar one for Firefox.



More information about the Python-list mailing list