Is there any solution in PYTHON?

A

A

Hi,
I have a program that downloads some web pages. Sometimes there is a poor internet
connection and my script freezes( hangs) and does not download ALL pages.
Is there any solution how to test if the program works and if not re-start it from the point
where it stopped?
Or simply how to download ALL pages eventhough there is a timeout connection( can be
of any value)?
Thanks for help
Ladislav
 
P

Peter Hansen

A said:
I have a program that downloads some web pages. Sometimes there is a poor internet
connection and my script freezes( hangs) and does not download ALL pages.
Is there any solution how to test if the program works and if not re-start it from the point
where it stopped?
Or simply how to download ALL pages eventhough there is a timeout connection( can be
of any value)?

I would think (not that I do this kind of thing often) that there would be
a better program than the one you are using, which can suck down all files
in a site *and* handle timeouts, which is obviously a pretty common problem.

Or is there a reason you want to use Python specifically? Sounds more like
make-work to me.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top