https://github.com/jdevlieghere/tinydm
Tiny Download Manager on top of libcurl
https://github.com/jdevlieghere/tinydm
downloadmanager libcurl modern-cpp
Last synced: over 1 year ago
JSON representation
Tiny Download Manager on top of libcurl
- Host: GitHub
- URL: https://github.com/jdevlieghere/tinydm
- Owner: JDevlieghere
- License: mit
- Created: 2017-03-23T18:37:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T19:09:15.000Z (about 9 years ago)
- Last Synced: 2025-04-16T01:16:19.471Z (over 1 year ago)
- Topics: downloadmanager, libcurl, modern-cpp
- Language: C++
- Homepage: https://github.com/JDevlieghere/tinydm
- Size: 15.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TinyDM
As the name suggests, `tinydm` is a lightweight utility for downloading
multiple files concurrently. It takes a single argument, the number of threads,
and queues downloads until a thread is available.
## Usage
The sample command bellow starts three concurrent downloads. The downloads are
read from standard input by redirecting `urls.txt` which contains a list of
newline-separated URLs.
```bash
./tinydm 3 < urls.txt
Finished downloading sample_download0.bin
Finished downloading sample_download1.bin
Failed to download sample_download2.bin: Couldn't resolve host name
```
The output of `tinydm` is limited to one line per file informing you whether
the download was successful or not.
## Build
TinyDM's only dependency is libcurl.
```
$ git clone https://github.com/JDevlieghere/tinydm.git && cd tinydm
$ mkdir build && cd build
$ cmake ..
$ cmake --build .
```