HTML DOM parser?

Daniel E. Burrow danieleburrow at yahoo.com
Fri Jul 19 01:01:45 EDT 2002


Paul Rubin <phr-n2002b at NOSPAMnightsong.com> wrote in message news:<7xvg7ck6dq.fsf at ruckus.brouhaha.com>...
> Peter Hansen <peter at engcorp.com> writes:
> > How about automating IE using Python?
> > 
> > from win32com.client import DispatchEx
> > 
> > ie = DispatchEx('internetexplorer.application')
> > ie.visible = 1
> > ie.navigate('http://www.nightsong.com')
> > dom = ie.document
> > 
> > etc...
> > 
> > Access to the DOM tree of the document might be too slow for your
> > needs, but if it's not, you definitely get a lot of bang for the buck...
> 
> That's a really interesting idea and I might try it.  I had been
> thinking in terms of a Linux solution, but automating IE might be
> ok for this particular application.  Thanks.

Greetings!

My present task requires the automation of IE. After much prayer, I
found that the "dom = ie.Document" assignment IS case sensitive. The
lower case form of "ie.document" just would not work for my
ActiveState ActivePython 2.2.1 distribution.


Joyfully About Alerio's Business,

Daniel



More information about the Python-list mailing list