I've found only puf (Parallel URL fetcher) but could to get it work with reading urls from file and something like
puf < urls.txt
does not work either.
The operating system installed on the server is ubuntu.
|
|
You can implement that using Python and the pycurl library. The pycurl library has the "multi" interface that implements its own even loop that enables multiple simultaneous connections. However the interface is rather C-like and therefore a bit cumbersome as compared to other, more "Pythonic", code. I wrote a wrapper for it that builds a more complete browser-like client on top of it. You can use that as an example. See the pycopia.WWW.client module. The HTTPConnectionManager wraps the multi interface. |
|||
|
|
|
Using GNU Parallel,
$ parallel -j ${jobs} wget < urls.txt
or
$ xargs -P ${jobs} wget < urls.txt
where One nice feature that |
|||
|
|
|
Part of GNU Parallel's man page contains an example of a parallel recursive wget. https://www.gnu.org/software/parallel/man.html#example__breadth_first_parallel_web_crawler_mirrorer Otherwise ephemient's answer seems obvious. |
|||
|
|
|
One solution would be something like the following:
Then run it as |
|||
|
|
|
aria2 does this. http://sourceforge.net/apps/trac/aria2/wiki/UsageExample#Downloadfileslistedinafileconcurrently |
|||
|
|
|
The victims of your paralell download won't be amused: they expect one connection to serve each client, setting up several connections means less clients overall. (I.e., this is considered rude behaviour). |
|||
|