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
K-Dawg wrote:
Hi,
I am trying to write a python script that I can run to prevent a timeout
of webpage. I have to use a system at work that keeps track of issues.
I use this a couple of time an hour and it times out after 10 minutes.
The system is really crummy and it rejects your username
Also, the actual JS code that does this simply uses a
window.location.reload()
to keep the session active. So I guess the only thing could be that eash
urllib.urlopen call is seen as a new session? How can I make it part of the
same session I am using in IE? Or am I a hundred miles off?
Thank
Hi,
I am trying to write a python script that I can run to prevent a timeout of
webpage. I have to use a system at work that keeps track of issues. I use
this a couple of time an hour and it times out after 10 minutes. The system
is really crummy and it rejects your username and password about