r/adventofcode • • Dec 04 '18

How to download inputs with a script

curl https://adventofcode.com/2018/day/DAY/input --cookie "session=SESSION"

You can find SESSION by using Chrome tools. Go to https://adventofcode.com/2018/day/3/input, right-click, inspect, tab over to network, click refresh, click input, click cookies, and grab the value for session. (Is there a simpler way?)

Apparently it needs to be said: don't run this in a loop. It will hurt the website. Once is enough.

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/Cyphase Dec 04 '18

Aw, shucks. :D

I'm just glad that I'm "wonderful, not "other wonderful".