Using win32Com with Internet Explorer

David Fuess fuess at att.net
Mon Feb 19 10:51:27 EST 2001


Pardon my directness, but isn't it rather foolish to go messing around
with IE and COM when Python provides libraries for this purpose. I've
implemented many crawlers using urllib, httplib, and htmllib to fetch,
parse, and follow URL threads.

Dave

On Sun, 18 Feb 2001 22:52:06 GMT, Mark Hammond <MarkH at ActiveState.com>
wrote:

>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.




More information about the Python-list mailing list