- Install local utils package into your .venv
pip install -e path/to/workdir # where setup.py is located
- 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.