Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvesvaren/aoc-template
Advent Of Code template with a simple python script to fetch input data
https://github.com/alvesvaren/aoc-template
advent-of-code advent-of-code-2020 aoc aoc-2020
Last synced: about 1 month ago
JSON representation
Advent Of Code template with a simple python script to fetch input data
- Host: GitHub
- URL: https://github.com/alvesvaren/aoc-template
- Owner: alvesvaren
- Created: 2020-11-27T19:18:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T12:28:32.000Z (about 2 years ago)
- Last Synced: 2024-08-03T18:13:01.410Z (5 months ago)
- Topics: advent-of-code, advent-of-code-2020, aoc, aoc-2020
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AoC-template
This is a template repository to use with advent of code
## Initialize:
When cd:ed into this repo, run;
```bash
$ python -m aoc
```This will ask you for your session cookie (which can be found in the application tab in most browsers devtools when on adventofcode.com).
## Usage:
In `1a.py`:
```python
from aoc import get_inputdata = get_input(1).splitlines()
for line in data:
print(line)```