godl

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 4 Imported by: 0

README

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

Build with Go toolchain:
git clone [email protected]: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/...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL