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/jonathan_paulson Dec 04 '18
Why is it better for me to open the page manually and copy-paste the input a file than to use curl?
Of course it would be wrong to run this in a tight loop (or any loop at all)