8000 GitHub - vtsao/aoc: https://adventofcode.com · GitHub
[go: up one dir, main page]

Skip to content
vtsaoPublic

About

https://adventofcode.com

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://adventofcode.com

Programmatically retrieving a day's input file

Input is randomized for each user, so you need to be authenticated using your session cookie.

  1. Find session cookie on AoC site after logging in under Chrome Developer Tools -> Application -> Cookies.

  2. Create a file called .session with contents:

    session=YOUR_SESSION_COOKIE
  3. Run the following to programmatically retrieve the day's input:

    curl -b "$(cat .session)" -o dayXX_input.txt https://adventofcode.com/20XX/day/XX/input

About

https://adventofcode.com

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages

0