2 releases
new 0.1.2 | Mar 13, 2025 |
---|---|
0.1.0 | Mar 9, 2025 |
#1519 in Command line utilities
95 downloads per month
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
- Create a
.json
file. For ease of use, create apaths.json
file in the same directory as the executable. - 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