Install advent-of-code-data (aocd)
pip install advent-of-code-data
Puzzle inputs differ by user. For this reason, you can't get your data with an unauthenticated request. Here's how to get your session cookie for aocd to use:
- Login on AoC with github or whatever
- Open browser's developer console (e.g. right click --> Inspect) and navigate to the Web Storage tab
- Copy the value of the session cookie. It's a long hex string.
- Write it to a plain text file at ~/.config/aocd/token.