Using win32Com with Internet Explorer

Mark Hammond MarkH at ActiveState.com
Sun Feb 18 23:52:06 CET 2001


cborn at swbell.net wrote:

> I am fairly new to Python and Com programming so hopefully
> this will be simple.
> 
> Here is a script I have written which attempts to extract
> links from a webpage. I have used makepy to generate Python
> IE support object (Msie ActiveX control Module 1.0).

...

> However, when I enter the script interactively 1 line at a time it 
> works. I am sure there is some small detail that I am 
> missing. Can anyone help me?

Probably you need to wait for IE to load the page.  There was an example of that posted a few days ago here that used events - basically you wait until IE tells you the page is loaded.

Mark.

-- 
Nominate Your Favorite Programmers
for the Perl and Python Active Awards!
http://www.ActiveState.com/Awards/




More information about the Python-list mailing list