Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Copy your session token into .token then:

curl "https://adventofcode.com/2024/day/$DAY/input" --header "Cookie: $(cat .token)" > input.txt



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: