Is there any solution in PYTHON?

Discussion in 'Python' started by A, Jul 7, 2003.

  1. A

    A Guest

    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
     
    A, Jul 7, 2003
    #1
    1. Advertising

  2. A

    Peter Hansen Guest

    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
     
    Peter Hansen, Jul 7, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ABC
    Replies:
    1
    Views:
    421
    Eliyahu Goldin
    Mar 29, 2006
  2. A
    Replies:
    0
    Views:
    273
  3. ashu
    Replies:
    7
    Views:
    331
    David Resnick
    Jan 26, 2006
  4. tenxian
    Replies:
    3
    Views:
    306
    RedGrittyBrick
    Apr 29, 2008
  5. Eric Danstron

    Are there ANY good forums out there anymore???

    Eric Danstron, Sep 21, 2005, in forum: ASP General
    Replies:
    1
    Views:
    159
    Immediacy
    Sep 22, 2005
Loading...

Share This Page