downloading long files

Discussion in 'Python' started by Michele Simionato, Dec 16, 2003.

  1. I have a connection which is not 100% rock solid, so if I try
    to download a large file (i.e. a Linux ISO image) chances are
    that the connection will break. Is there a way to check periodically
    if the connection is open, reopen it if needed, and continue the
    download without restarting from the beginning?


    Michele
     
    Michele Simionato, Dec 16, 2003
    #1
    1. Advertising

  2. Michele Simionato <> wrote:
    > I have a connection which is not 100% rock solid, so if I try
    > to download a large file (i.e. a Linux ISO image) chances are
    > that the connection will break. Is there a way to check periodically
    > if the connection is open, reopen it if needed, and continue the
    > download without restarting from the beginning?


    yes, use wget http://www.gnu.org/directory/wget.html
    or are you looking for a pure python solution?

    --
    -----------------------------------------------------------
    | Radovan Garabík http://melkor.dnp.fmph.uniba.sk/~garabik/ |
    | __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
    -----------------------------------------------------------
    Antivirus alert: file .signature infected by signature virus.
    Hi! I'm a signature virus! Copy me into your signature file to help me spread!
     
    Radovan Garabik, Dec 16, 2003
    #2
    1. Advertising

  3. Michele Simionato

    Guest

    Michele Simionato wrote:
    > I have a connection which is not 100% rock solid, so if I try
    > to download a large file (i.e. a Linux ISO image) chances are
    > that the connection will break. Is there a way to check periodically
    > if the connection is open, reopen it if needed, and continue the
    > download without restarting from the beginning?


    What has this to do with python?

    Anyway I'm assuming linux since you mentioned it,
    so use wget or even better:
    rsync -P rsync://rsync.server.com/path/to/file file

    Pádraig.
     
    , Dec 16, 2003
    #3
  4. (Radovan Garabik) wrote in message news:<brmds0$4qqjm$-berlin.de>...
    > Michele Simionato <> wrote:
    > > I have a connection which is not 100% rock solid, so if I try
    > > to download a large file (i.e. a Linux ISO image) chances are
    > > that the connection will break. Is there a way to check periodically
    > > if the connection is open, reopen it if needed, and continue the
    > > download without restarting from the beginning?

    >
    > yes, use wget http://www.gnu.org/directory/wget.html
    > or are you looking for a pure python solution?


    A pure Python solution would be preferable, indeed.

    Michele
     
    Michele Simionato, Dec 16, 2003
    #4
  5. Michele Simionato

    John Abel Guest

    If I remember rightly, there is python code for a resumable HTTP
    downloader in the Python Cookbook. I don't think it would take much
    work for it to handle FTP, too.

    Regards

    John

    Michele Simionato wrote:

    > (Radovan Garabik) wrote in message news:<brmds0$4qqjm$-berlin.de>...
    >
    >
    >>Michele Simionato <> wrote:
    >>
    >>
    >>>I have a connection which is not 100% rock solid, so if I try
    >>>to download a large file (i.e. a Linux ISO image) chances are
    >>>that the connection will break. Is there a way to check periodically
    >>>if the connection is open, reopen it if needed, and continue the
    >>>download without restarting from the beginning?
    >>>
    >>>

    >>yes, use wget http://www.gnu.org/directory/wget.html
    >>or are you looking for a pure python solution?
    >>
    >>

    >
    >A pure Python solution would be preferable, indeed.
    >
    > Michele
    >
    >
     
    John Abel, Dec 16, 2003
    #5
    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. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    681
    Eric Sosman
    Jul 8, 2003
  2. Daniel Rudy

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,194
    Peter Shaggy Haywood
    Sep 20, 2005
  3. Mathieu Dutour

    long long and long

    Mathieu Dutour, Jul 17, 2007, in forum: C Programming
    Replies:
    4
    Views:
    477
    santosh
    Jul 24, 2007
  4. Bart C

    Use of Long and Long Long

    Bart C, Jan 9, 2008, in forum: C Programming
    Replies:
    27
    Views:
    804
    Peter Nilsson
    Jan 15, 2008
  5. veryhotsausage
    Replies:
    1
    Views:
    1,806
    veryhotsausage
    Jul 4, 2008
Loading...

Share This Page