downloading long files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michele Simionato

    downloading long files

    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
  • Radovan Garabik

    #2
    Re: downloading long files

    Michele Simionato <michele.simion ato@poste.it> wrote:[color=blue]
    > 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?[/color]

    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!

    Comment

    • Padraig@Linux.ie

      #3
      Re: downloading long files

      Michele Simionato wrote:[color=blue]
      > 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?[/color]

      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.co m/path/to/file file

      Pádraig.

      Comment

      • Michele Simionato

        #4
        Re: downloading long files

        garabik-news-2002-02@kassiopeia.j uls.savba.sk (Radovan Garabik) wrote in message news:<brmds0$4q qjm$1@ID-89407.news.uni-berlin.de>...[color=blue]
        > Michele Simionato <michele.simion ato@poste.it> wrote:[color=green]
        > > 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?[/color]
        >
        > yes, use wget http://www.gnu.org/directory/wget.html
        > or are you looking for a pure python solution?[/color]

        A pure Python solution would be preferable, indeed.

        Michele

        Comment

        • John Abel

          #5
          Re: downloading long files

          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:
          [color=blue]
          >garabik-news-2002-02@kassiopeia.j uls.savba.sk (Radovan Garabik) wrote in message news:<brmds0$4q qjm$1@ID-89407.news.uni-berlin.de>...
          >
          >[color=green]
          >>Michele Simionato <michele.simion ato@poste.it> wrote:
          >>
          >>[color=darkred]
          >>>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?
          >>>
          >>>[/color]
          >>yes, use wget http://www.gnu.org/directory/wget.html
          >>or are you looking for a pure python solution?
          >>
          >>[/color]
          >
          >A pure Python solution would be preferable, indeed.
          >
          > Michele
          >
          >[/color]

          Comment

          Working...