Get your advent of code input every day with a simple function call.
Clojure version of the scala library by the same name that is in turn based on a python library.
(require '[aocd.core :as data])
(data/input 2019 4) => "124075-580769\n"
aocd
is available as a Maven artifact from Clojars.
Leiningen/Boot:
[aocd "0.1.1"]
Advent of code inputs are personal hence a session
token is needed in order to fetch your input. aocd
supports providing this token
in two ways:
# env variable
$ export AOC_SESSION_TOKEN="yoursessionstoken"
# or config file
$ echo "yoursessiontoken" > $HOME/.config/aocd/token
The downloaded input files are stored in
$HOME/.config/aocd/{year}/{day}/input.txt
input
link fromAbove was taken from here
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close