shirodl
ShiroDL Async Download Library for Massive Batch of Urls Downloading
Install
cargo install --example shirodl --git https://github.com/Oyami-Srk/shirodl
Usage
shirodl --help for usage helps.
Library
example
use Downloader;
use PathBuf;
Downloader::download will create Tokio runtime, so you can call it directly in normal sync code.
Default Download parameters:
folder: Defaultdefault,
timeout: Some,
headers: new,
hash_check: false,
only_binary: true,
auto_rename: true,
Notice that currently auto-rename only determinates extensions simply by MIME via http header content-type and extracts subtype as extension.
Manually check is required but at least it could give you a tip.
shirodl::Error::ignorable() is not always ignorable, present errors to users always and leave the decisions to end user.