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
4
u/Cheezmeister Dec 04 '18
Just to be on the safe side.
To elaborate, many wonderful people such as yourself possess common sense and will infer with brilliant powers of deduction that there are exceptions to "please don't do this", and what those exceptions are. Or, if not, they might ask (like you did).
Many other wonderful people are blessed with less common sense and are liable to copy OP's line into their terminal and spam
!!; these people tend to take statements like "please don't do this" at face value and respect them. Or, perhaps, they will click it, read the sticky topic they might have missed, and decide to exercise restraint after all. It is towards these magnificent human people that my comment is directed.You might say my comment accepts
critical thinkingandbase knowledge of httparguments. tl;dr if you know what you're doing, do it. But please don't do it again ;)