What is godl
godl
is a lightweight multi-threaded HTTP downloader written in Go.
Download binary
You can visit the Release page to download binary executables of your system.
Build from source
Via Go environment
go install github.com/aeof/godl@latest
Build from source
git clone git@github.com:aeof/godl.git
cd godl
go build
Install godl
to your $GOBIN
:
cd godl
go install
How to use
Download using 32 concurrent threads:
By default, godl
will create N concurrent threads to download a file, where N is the number of your computer's logical CPUs. However, you can set it mannuanly:
godl -n 32 https://example.com/...
Download to the given directory:
godl -d ~/Pictures https://example.com/...
Download with proxy:
You can use http_proxy
/HTTP_PROXY
and https_proxy
/HTTPS_PROXY
environment variables to set downloading proxy for HTTP and HTTPS downloading request:
http_proxy="http://localhost:7890" godl http://www.example.com
https_proxy="http://localhost:7890" godl https://www.example.com
Download withou proxy:
You may have set http_proxy
or https_proxy
environments in your current Session and don't want to download with proxy, then you can do it with the --no-proxy
flag:
godl --no-proxy https://example.com/...