update readme

This commit is contained in:
aaron
2022-12-03 12:45:04 +01:00
parent ef3d1d1081
commit 3baaba3c35
2 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@@ -160,3 +160,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
*.swp

View File

@@ -1,10 +1,18 @@
# advent of code 2022 # advent of code 2022
Solutions for the advent of code 2022
## how to get input data ## how to get input data
* [python aocd library](https://pypi.org/project/advent-of-code-data/) - [python aocd library](https://pypi.org/project/advent-of-code-data/)
- Get the puzzle for day two: `puzzle = Puzzle(year=2022, day=2)`
- Submit a solution for day two part a: `submit(answer, part='a', day=2, year=2022)`
## session token ## how to add a session token
- After a successful login extract your session token from your browser
- Create a `.env` file and make sure to export the environment variable below
- The lib will outomatically work if the environment variable is present
```bash ```bash
$ cat .env $ cat .env