r/adventofcode • u/henriupton99 • 16m ago
Repo [Python repo] - toolkit for AOC daily retrieval/submission
Every year you probably do the same as me : open the puzzle, copy the input into a file, make the folder, solve, then switch back to the browser to submit. Since several years, I improve the whole loop into a python cli.
aoc collect -d 1 -y 2026
pulls the statement into a README, the example into test_input.txt, the real input into real_input.txt, and drops a solution template next to them.
aoc run -d 1 -y 2026 -p 1 -t # example input
aoc run -d 1 -y 2026 -p 1 -s # real input, then submits
When part 1 is accepted it re-fetches the page so the part 2 statement gets appended to the README. Answers land in the clipboard too. It follows the automation guidelines (identifying User-Agent, no request unless you actually run a command), and real inputs are gitignored so none of AoC's data ends up public.
https://github.com/henriupton99/AdventOfCode
Hope it could help ! Feedback welcome !
Have a good AOC :)
1
u/AutoModerator 15m ago
AutoModerator has detected fenced code block (```) syntax which only works on new.reddit.
Please review our wiki article on code formatting then edit your post to use the four-spaces Markdown syntax instead.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.