simonfalke-01 / go-threaded-dl

Multi-threaded content downloader written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go_badge go_macos_badge release
Multi-threaded content downloader written in Go. By downloading a file with multiple connections (multiple threads), download speed can be drastically improved.
Downloading with 100 threads:

Usage

Provide URL. Threads and save path are optional. Default is 10 threads and the current directory.

gdl <url>
gdl <url> -t <threads>
gdl <url> -o <save-path>
gdl <url> -t <threads> -o <save-path>

Example

gdl https://do-spaces-1.simonfalke.studio/Hello\! -t 20 -o ~/Hello\!

Installation

go-threaded-dl can be installed on your system by running one of the commands below in your terminal. An installation script will be run. You must have git, and either curl or wget installed.
Latest builds can be found under GitHub Actions here.

Commands

Method Command
curl /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/simonfalke-01/go-threaded-dl/main/install.sh)"
wget /bin/bash -c "$(wget -O- https://raw.githubusercontent.com/simonfalke-01/go-threaded-dl/main/install.sh)"
fetch /bin/bash -c "$(fetch -o - https://raw.githubusercontent.com/simonfalke-01/go-threaded-dl/main/install.sh)"

Inspection

If you would like to inspect the script before running it, you can download the script by running the following command:

wget https://raw.githubusercontent.com/simonfalke-01/go-threaded-dl/main/install.sh

After you are done, you can run the script with

chmod +x ./install.sh && ./install.sh

Building

A version of Go must be installed. Clone the repository and run:

go build -v -o gdl .

License

This project is licensed under there are literally no licenses to this (made by me). You can do whatever you want with this, but I would appreciate if you would give me credit.

About

Multi-threaded content downloader written in Go

License:Other


Languages

Language:Go 92.6%Language:Shell 7.4%