My solutions to the 2017 Advent of Code problems.
- Create a
.env
file:
cp template.env .env
- Log in to http://adventofcode.com/, go to developer tools in your browser, and copy the value of the
session
cookie. Paste this into.env
as the value ofSESSION_ID
. - Install pipenv:
pip install pipenv
- Install dependencies:
pipenv install
If using VS Code, modify the value of python.pythonPath
in .vscode/settings.json
to your virtualenv's Python path, which can be determined by running
pipenv --venv
and appending /bin/python
to the result.
Note: The .vscode
directory is pre-configured for running solutions and tests in VS Code.
pipenv run python solutions/inverse_captcha.py # (For example)
pipenv run pytest