多线程并行下载大文件,突破GFW限速!
由于GFW对国外网站限速,导致下载国外的文件非常缓慢,但GFW仅能对连接限速,而不能对IP限速,因此,只要采用多线程下载一个文件的不同部分,就可以实现高速下载文件。你的带宽有多高,就能下多快。
使用方法:
[example] sh ./mget.sh http://xxxxxx.mp4 20 target.mp4
as GFW or some server have speed limit for connection,but not for host. so we can archive a multi thread downloader to get different part of a big file,then we merge it.
mainly use the Content-Range feature of HTTP
first,the GFW will let you download at a high speed.
then, it will be slow at last, turns to about 20-40 kBps until the end. while you use the mget. if you want better speed,you just add the thread number. if your ISP support 20MB/s then you should use 500-1000 threads to download the file.if this project helps you, pls give me a star.
老铁,点个赞呗!