Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.15 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.15 KB

dlgo

Downloader accelerator in Go.

It splits your file and downlods it in parallel using go routines. This is a very simple implementation of dlrs

When does it actually help?

  • When you really want to download a large file
  • When the server you are downloading from supports range requests
  • When server can handle multiple requests concurrently

Installation

  • Clone and build the project
  • Set the path to the build binary so that it can be run from anywhere For example: If you are on zsh shell like me then you can add the following line to your .zshrc file

export PATH="/path/to/your/dlgo/directory:$PATH"

Usage

dlgo download -u <url> -w <workers> -o <output>

example run command: dlgo download -u https://research.nhm.org/pdfs/10592/10592-001.pdf -w 2 -o out.pdf

dlgo demo

Contribution

Feel free to open an issue or a PR. As I mentioned earlier, this is a very simple implementation, so there is a lot of room for improvement. We can define types, add support for new protocols(FTP etc), imporve the CLI, impove progress indicator, refactor my scrappy code, add tests and so on.