Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 510 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 510 Bytes

advent-of-code-2023

How to get input programmatically

  1. Install local utils package into your .venv
pip install -e path/to/workdir  # where setup.py is located
  1. Import the package and use the get function
import os
import utils.input

my_input = utils.input.get(session_cookie=os.environ["SESSION_COOKIE"], year=2023, day=1)

NOTE: You can find your session cookie by logging into the advent of code website and inspecting the page (F12) Application -> Cookies.