r/adventofcode • u/henriupton99 • 10h 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.
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.
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 :)
•
u/daggerdragon 9h ago
The triple-backticks code fence (
```) only works on new.reddit. As AutoModerator requested, please edit your post to use the four-spaces Markdown syntax for a code block so your code is easier to read inside a scrollable box with its whitespace and indentation preserved.Does your script comply with our automation rules?
User-Agentheader1
u/AutoModerator 10h 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.
1
u/fnordargle 6h ago
A reminder that you should not put copies of the puzzle texts or your puzzle inputs in a public Github repository. (You don't have the latter in your repo but you are duplicating the puzzle texts.) I have a public Github repo for my solutions and a private Github repo for puzzle texts and my inputs.
https://adventofcode.com/2026/about#faq_copying