Giter Club home page Giter Club logo

mget's Introduction

多线程并行下载大文件,突破GFW限速!

由于GFW对国外网站限速,导致下载国外的文件非常缓慢,但GFW仅能对连接限速,而不能对IP限速,因此,只要采用多线程下载一个文件的不同部分,就可以实现高速下载文件。你的带宽有多高,就能下多快。

使用方法:

[usage] sh ./mget.sh url thread_num save_out_file

[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

example:

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.

老铁,点个赞呗!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.