win32com and internet explorer... sorry if this is a repeat... wasn't sure of the first one

chandan chandan_mathur at hotmail.com
Wed Jul 3 16:28:16 EDT 2002


Hi...,
    I am new to python/programming.. I was trying to read and save a page
from the internet using win32com and internet explorer..., easy rite? well..
not workin for me.. this is what i have so far

import win32com.client,time
# Get the browser object
ie = win32com.client.DispatchEx("InternetExplorer.Application")
# open a page
ie.Visible = 1
ie.Navigate("http://www.google.com")
time.sleep(5) #to make sure the page has finished loading
print ie.Document.toString()


result: -- [object] ...I was expecting to see the html junk displayed.

help appreciated.... thank you
chandan



More information about the Python-list mailing list