Skip to content

Dhruv-Sachdev1313/dlgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Downloader accelerator in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages