Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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_input

data = get_input(1).splitlines()

for line in data:
print(line)

```