473,388 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Is there any solution in PYTHON?

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

Jul 18 '05 #1
1 1463
A wrote:

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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Matuszewski | last post by:
Potential Solution! I had this problem when I built an extension module using a debug version of python.lib. The problem occured when attempting to import the extended module with the release...
2
by: jason willows | last post by:
There have been many many many many discussions about obfuscating python. To my dismay, most who answer are those who frequently post, and they say things such as: 1) what's the point, in theory...
2
by: Johannes Nix |Johannes.Nix | last post by:
Hi, I have a tricky problem with Numeric. Some time ago, I have generated a huge and complex data structure, and stored it using the cPickle module. Now I want to evaluate it quickly again on a...
29
by: Thomas | last post by:
Hi I have an XSL stylesheet: <xsl:for-each select="TRACKS/TRACK"> <tr class="TDL"> <td width="90%"><xsl:number value="position()" format="1" /> - <xsl:value-of select="TRACKTITLE"/></td>...
7
by: sturlamolden | last post by:
This question has been asked many times, and last time I was accused of spreading FUD. So now I will rather propose a solution. The reason for the problem is as follows: The binary installer...
12
by: ce | last post by:
Hi, My company is using python currently for our website. We need to develop a GUI front-end for our ERP that would be portable (Windows and Linux). My question is which solution would be...
2
by: Greg Corradini | last post by:
Hello all, I'm running descriptive stats on mileages from a database (float numbers, about a million records). My sum returns 1.#QNAN, which I understand from searching this forum is an error. ...
12
by: Helmut Jarausch | last post by:
Hi, I'm looking for an elegant solution of the following tiny but common problem. I have a list of tuples (Unique_ID,Date) both of which are strings. I want to delete the tuple (element) with...
0
by: skip | last post by:
RonI think most of us are annoyed by the recent SPAM messages that Roncrept onto our list. I'd like to suggest a possible solution, and Ronmaybe start a thread that eventually will rid us of this...
3
by: chanshaw | last post by:
Alright I'm just getting into Python for the first time so what do I need to do to be able to setup a connection string and start using a database in python. I'm new to this so specifics would be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.