Beating a Timeout

K-Dawg kdawg44 at gmail.com
Wed Jan 21 12:38:45 EST 2009


Sorry about the last mesasge, I accidentally replied directly to the
poster.  So I now have:


br = mechanize.Browser()
br.open("theURL")
while True:
 result = br.reload()
 print result
 print "Retrieved Page"
 time.sleep(300)

But it still does not appear to be working...  Shortly after I got the "Your
session is about to expire" pop up.  I will continue to monitor though.

Is mechanize starting another session separate from my IE?  Is there anyway
to get my python to interact with the IE session if so?

Thanks.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090121/4a08e79e/attachment.html>


More information about the Python-list mailing list