[Tutor] splitting the large file into small pieces and download

Walter Prins wprins at gmail.com
Fri Jan 27 00:12:01 CET 2012


Hi Arun,

On 26 January 2012 21:27, Arun Kumar <arunkumar413 at gmail.com> wrote:
> I want to build a small download accelerator program. I want to know how to
> split the file to be downloaded into small pieces and assign the each small
> piece to a thread for downloading.

OK, so what else have you tried and what are you having problems with?
 Or have you just come up with that requirement spec and nothing else?
 While we're not going to write your program for you, we'd be willing
to help you with specific problems you may be stuck on.  I'd like to
add: This is not strictly speaking a Python language/tutoring
question, and really more of a general internet programming question,
so you may be better off asking elsewhere, such as (perhaps)
http://stackoverflow.com/

Some other questions: Do you understand websites and http traffic and
how to do this with Python well enough to download files directly
(without splitting them up) already? Do you understand threads and how
to use them already?   Obviously these 2 things are neccesary (though
not sufficient) conditions for you to be able to have a chance at
writing your program.

HTH,

Walter


More information about the Tutor mailing list