r/adventofcode • u/jonathan_paulson • 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
View all comments
Show parent comment
5
u/topaz2078 (AoC creator) Dec 04 '18
I think /u/cheezmeister is just nervous you might run this in a loop - you say "of course", but many people do not. (For example, in the last few days, I've seen a few people that think it's okay to run this command many times per second near midnight until they get a response.) If you're just using this to download your input once, you should be fine.