gget

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 9 Imported by: 0

README

Gget

A command-line interface (CLI) downloader written in Golang that supports resuming downloads.

Features

  • Resuming downloads
  • Custom HTTP Headers
  • HTTP and SOCKS5 Proxies
  • Netscape Cookies
  • Concurrent Chunk Downloading

Build Instructions

To build the CLI downloader, follow the instructions below:

  1. Clone the repository
    git clone github.com/DevonTM/gget
    
  2. Navigate to the cloned repository
    cd gget
    
  3. Build the project
    make build
    

Usage

To use Gget, run the following command:

gget [OPTIONS] URL

Available options are:

Option Description
-url URL to download, can be set from last argument
-o Output path, default current directory
-O Output filename, default from server
-f Force download, overwrites existing file
-c Chunk size in bytes, default 1M
-j Maximum number of concurrent chunks download, default 4
-t Maximum retry count, default 3
-r Set HTTP referer
-ua Set HTTP user agent
-p Proxy URL
-C Netscape cookie file
-H Custom HTTP header
-no-h2 Disable HTTP/2
-help Show help
-version Show version

Examples

gget -o file.zip https://example.com/file.zip
gget -o foo -O bar file.zip https://example.com/file.zip
gget -p socks5://127.0.0.1:1080 https://example.com/file.zip
gget -H "Accept:text/plain" -H "User-Agent:gget/1.0" https://example.com/file.zip
gget -C cookies.txt https://example.com/file.zip

TODO

  • Add tests
  • Better error messages

License

This project is licensed under the MIT License - see the LICENSE file for details.

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