Skip to content

ivan-toriya/advent-of-code-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Solutions for the Advent of Code.

Resources

Stars

Watchers

Forks

Languages