Description Usage Arguments Details Value
Gets the user specific input for a given Advent of Code day puzzle directly from the adventofcode.com server
1 | aoc_get_input(day, year = 2017, cookie_path, encoding = "UTF-8")
|
day |
numeric. Day for which input is required |
year |
numeric. Year for which input is required |
cookie_path |
character string. Path to the cookie string stored as a text file. |
encoding |
character string. Encoding of result. Defaults to "UTF-8". |
In chrome, get your cookie details by clicking on the triple dot menu
(top right) > More tools > Developer tools > Application > Cookies. You need to copy the long
string in the value
column for row session
. Save that as a text file.
Returns user specific puzzle input as returned by the advent of code server.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.