A simple executable written in Rust intended for fetching inputs of the Advent of Code coding challenges.
- Fetch all
inputs/prompts
sequentially by running the executable with no parameters - Fetch specific days by passing a number as argument, for example
./fetch 01
or./fetch 1
- Skips already present
inputs/prompts
- Updates prompt if it changes since the last time ran
- Configurable input file format extension
- exitcode v1.1.2
- reqwest v0.11.18
- scraper v0.17.1
- toml v0.7.6
Although intended for personal use, If for any reason you decide to use this, it should be simple
- Download the source code and build it with
cargo build --release
- Get the binary from
./traget/release
and run it to generate a Fetch.toml file - Get your session cookie and define it on the Fetch.toml
- Also remember to set the proper year on the configuration file
- Run it, and the contents will be downloaded to
./input
directory by default