Hello, thanks for reading my post. My troubles have to do with using a python script to gather information from a web page. I'm using the 'IEC' (Internet Explorer Controller) module to handle the 'COM' stuff for me. The script looks like this:
import IEC from BeautifulSoup import BeautifulSoup website = 'http://www.mywebsite.com' ie = IEC.IEController() ie.Navigate(website) ie.PollWhileBusy() html = ie.GetDocumentHTML() ie.PollWhileBusy() soup = BeautifulSoup(html) #...etc etc etc....
This code works fine on the computer I wrote it on, a P4 2.4GHz, but as soon as I tried it on some faster computers I get blank or incomplete html for the page unless I inject some sleep statements for several seconds between navigating and getting the html. This also happened on the slower computer when the internet/site was especially slow one day. Has anyone else had these troubles with the module or am I not using PollWhileBusy properly perhaps? Examining its code its just a function that gets a boolean returned from i.e. if it's busy and loops/waits until i.e. says it's not busy anymore.... I don't want to use arbitrary-length time.sleep statements to make this work under varying conditions, anybody have some experience/advice with this module?? Thanks for reading and any advice you can offer!!