#download #input #advent #puzzle #utility #helper #day

app aochelper

Helper utility to download Advent of Code puzzle inputs

4 releases (2 breaking)

0.3.1 Jan 16, 2024
0.3.0 Jan 15, 2024
0.2.0 Jan 14, 2024
0.1.0 Jan 14, 2024

#25 in #advent

MIT license

16KB
223 lines

aochelper

Utility to download Advent of Code puzzle inputs.

Installation

cargo install aochelper

Setup

Run

aochelper set year <year>

in the directory in which you'll be working to set the puzzle year.

The authentication is automatic if you log into Advent of Code with Snap-installed Firefox on Linux. Otherwise, get your Advent of Code session cookie from your browser of choice, and run

aochelper set session_key <your key here>

Usage

To download a puzzle for a given day:

aochelper get <day>

This will download the puzzle inputs to inputs/year.day.

Troubleshooting

Works on my machine!

Dependencies

~30–43MB
~717K SLoC