aoc_get_input: get AoC puzzle input

Description Usage Arguments Details Value

Description

Gets the user specific input for a given Advent of Code day puzzle directly from the adventofcode.com server

Usage

1
aoc_get_input(day, year = 2017, cookie_path, encoding = "UTF-8")

Arguments

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".

Details

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.

Value

Returns user specific puzzle input as returned by the advent of code server.


annakrystalli/aocodeR documentation built on May 22, 2019, 1:34 p.m.