win32com and internet explorer
chandan mathur
chandan_mathur at hotmail.com
Wed Jul 3 16:17:42 EDT 2002
**** Post for FREE via your newsreader at post.usenet.com ****
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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Python-list
mailing list