5 releases

0.4.2 May 31, 2024
0.4.1 Apr 26, 2024
0.4.0 Apr 26, 2024
0.3.8 Mar 21, 2024
0.3.7 Mar 8, 2024

#224 in Command line utilities

Download history 130/week @ 2024-03-04 21/week @ 2024-03-11 133/week @ 2024-03-18 9/week @ 2024-03-25 18/week @ 2024-04-01 2/week @ 2024-04-08 208/week @ 2024-04-22 28/week @ 2024-04-29 5/week @ 2024-05-20 173/week @ 2024-05-27 20/week @ 2024-06-03

198 downloads per month

Apache-2.0

49KB
1K SLoC

dlm

Build status Crates.io

A minimal HTTP download manager that works just fine.

Features

  • read URLs from a text file (one entry per line)
  • control maximum number of concurrent downloads
  • resume interrupted downloads if possible (using HTTP range)
  • automatically retry re-establishing download in case of timeout or hanging connection
  • multi progress bars (made with indicatif)
  • native support for proxies and redirects
./dlm --help
Minimal download manager

Usage: dlm [OPTIONS] --maxConcurrentDownloads <maxConcurrentDownloads> --inputFile <inputFile> --outputDir <outputDir>

Options:
  -M, --maxConcurrentDownloads <maxConcurrentDownloads>
          used to limit the number of downloads in flight
  -i, --inputFile <inputFile>
          input file with links
  -o, --outputDir <outputDir>
          output directory for downloads
  -U, --userAgent <userAgent>
          User-Agent header to be used by the HTTP client
      --randomUserAgent
          sets up a random User-Agent header to be used by the HTTP client
      --proxy <proxy>
          configure the HTTP client to use a proxy
  -A, --accept <accept>
         Accept header to be used by the HTTP client
  -r, --retry <retry>
          configure the number of retries in case of network error [default: 10]
      --connectionTimeoutSecs <connectionTimeoutSecs>
          configure connection timeout in seconds for the HTTP client [default: 10]
  -h, --help
          Print help
  -V, --version
          Print version

Example:

./dlm --inputFile ~/dlm/links.txt --outputDir ~/dlm/output --maxConcurrentDownloads 2

Installation

Releases

Using the provided binaries in https://github.com/agourlay/dlm/releases

Crates.io

Using Cargo via crates.io.

cargo install dlm

Dependencies

~11–23MB
~307K SLoC