Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chtozamm/adventofcode-input-dl

A command-line utility for downloading Advent of Code input
https://github.com/chtozamm/adventofcode-input-dl

adventofcode go

Last synced: 21 days ago
JSON representation

A command-line utility for downloading Advent of Code input

Awesome Lists containing this project

README

        

# Advent of Code Input Downloader

A command-line tool for downloading the input for the Advent of Code challenges.

## Prerequisites

- Go is required to build or [install](#installation) the application.
- A valid session cookie from [Advent of Code](https://adventofcode.com/). You can obtain this by logging into your account and copying the session cookie.
- Set the session cookie as an environmental variable `AOC_SESSION`.

## Installation

Install with Go:

```sh
go install github.com/chtozamm/adventofcode-input-dl/cmd/adventofcode@latest
```

## Usage

```sh
adventofcode
```

To download the input for Day 1 of Advent of Code 2023, simply run:

```sh
adventofcode 2023 1
```

You should see a message like:

```sh
Successfully created aoc_2023_day_1.txt
```

## License

[MIT](https://github.com/chtozamm/adventofcode-input-dl/blob/main/LICENSE.md)