#file #download #curl #bulk

app curler

A simple rust programme to bulk-curl documents

2 releases

new 0.1.2 Mar 13, 2025
0.1.0 Mar 9, 2025

#1519 in Command line utilities

Download history 95/week @ 2025-03-05

95 downloads per month

MIT license

5KB
62 lines

Installation

Prebuilt binaries can be found here.

Cargo

The program will soon be an installable binary from crates.io

Building from source

git clone https://github.com/JayanAXHF/curler
cd curler
cargo build --release

To run, run cargo run

Details

  1. Create a .json file. For ease of use, create a paths.json file in the same directory as the executable.
  2. The format for the .json file is as follows:
{
	"files": [
		{
			"name": "worksheet.pdf",
			"url": "https://sample.gg"
		},
		{
			"name": "worksheet_ak.pdf",
			"url": "https://sample.gg/sample"
		}
		...
	]
}

The Programme

The programme will ask the user for two things, A path to a JSON file and for a subject. This program was made to make it easier for me to download school worksheets, but is compatible with all files. The path to the JSON file is the path to the .json file with the list of files. Subject is used to create a directory where all the downloaded files are stored. Defaults to ./.

Dependencies

~0.7–1.5MB
~33K SLoC