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: 3 months 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T12:28:32.000Z (almost 2 years ago)
- Last Synced: 2024-06-29T19:33:28.526Z (4 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
- awesome-advent-of-code - alvesvaren/AoC-template
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)```