Skip to content

YuYuCong/MultiThreadDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文说明

WindmillDownloader

WindmillDownloader is a web downloader.

Feature

  • Thread pool.
  • MultiThread Download.
  • Break point reconnect.

Platform

Ubuntu.

Dependencies

  • curl
  • thread
  • glog
  • gflags
  • boost (filesystem)
  1. curl
$ sudo apt-get install curl
  1. boost
# 下载boost库 地址 https://www.boost.org/
$ tar -zxvf ./boost.tar.gz
$ cd ./boost_1_70_0
$ sudo ./bootstrap.sh
$ sudo ./b2 install
  1. glog
$ sudo apt-get install libgoogle-glog-dev
  1. gflags
$ git clone https://github.com/gflags/gflags.git
$ cd gflags
$ make build
$ cd build
$ cmake ..
$ make -j12
$ make install

Build

$ mkdir build
$ cd build
$ cmake ..
$ make -j

Usage

$ ./windmill_downloader [--thread_num <thread_num>] --url <url> [--out_file <output_file>]
# example:
$ ./windmill_downloader --thread_num 32 --url https://releases.ubuntu.com/20.04/ubuntu-20.04.3-desktop-amd64.iso --out_file ./ubuntu-20.04.3-desktop-amd64.iso
$ ./windmill_downloader --url http://www.gecif.net/articles/mathematiques/pi/pi_1_million.txt --out_file pi_1_million.txt

Contact

Feel free to contact me windmillyucong@163.com anytime for anything.

License

Copyleft! 2021 William Yu. Some rights reserved.

CC0