| Crates.io | curler |
| lib.rs | curler |
| version | 0.1.2 |
| created_at | 2025-03-09 15:43:59.038595+00 |
| updated_at | 2025-03-13 05:11:57.438194+00 |
| description | A simple rust programme to bulk-curl documents |
| homepage | https://github.com/JayanAXHF/curler |
| repository | https://github.com/JayanAXHF/curler |
| max_upload_size | |
| id | 1585598 |
| size | 24,603 |
Prebuilt binaries can be found here.
cargo install curler
git clone https://github.com/JayanAXHF/curler
cd curler
cargo build --release
To run, run cargo run
.json file. For ease of use, create a paths.json file in the same directory as the executable..json file is as follows:{
"files": [
{
"name": "worksheet.pdf",
"url": "https://sample.gg"
},
{
"name": "worksheet_ak.pdf",
"url": "https://sample.gg/sample"
}
...
]
}
text file. The program defaults to paths.txt files in the current directory.text file is as follows:filename, url
file2, url
.
.
.
This program was made to make it easier for me to download school worksheets, but is compatible with all files. The path to the input file is the path to the .json or text file with the list of files. Subject is used to create a directory where all the downloaded files are stored. Defaults to ./.
Available Options:
-s, --subject <SUBJECT> The subject, or directory, to download the files to. [Defaults to ./]
-f, --file-path <FILE_PATH> The path to the JSON/txt file containing the URLs to download
-m, --max-threads <MAX_THREADS> Maximum number of threads to use [default: 4]
--mode <MODE> Possible values:
- json: Parse .json file (default)
- text: Parse text file