{"id":19039642,"url":"https://github.com/nozwock/yaadv","last_synced_at":"2025-04-17T16:31:57.799Z","repository":{"id":64083310,"uuid":"573068746","full_name":"nozwock/yaadv","owner":"nozwock","description":"Yet another Advent of Code CLI tool","archived":true,"fork":false,"pushed_at":"2022-12-07T17:37:57.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T22:30:47.505Z","etag":null,"topics":["advent-of-code","cli","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nozwock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-01T16:21:29.000Z","updated_at":"2023-05-09T05:27:01.000Z","dependencies_parsed_at":"2023-01-14T21:30:24.152Z","dependency_job_id":null,"html_url":"https://github.com/nozwock/yaadv","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozwock%2Fyaadv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozwock%2Fyaadv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozwock%2Fyaadv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozwock%2Fyaadv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nozwock","download_url":"https://codeload.github.com/nozwock/yaadv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249357414,"owners_count":21256781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","cli","rust"],"created_at":"2024-11-08T22:18:03.461Z","updated_at":"2025-04-17T16:31:57.558Z","avatar_url":"https://github.com/nozwock.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaadv\n\n**Y**et **a**nother **Adv**ent of Code CLI tool\n\n## Features\n\n-   Download your AOC input files\n-   ...Rust\n-   ...and yep, that's it for now\n\n## Setting up the CLI\n\nA valid AOC session token is required for `yaadv` to work.\n\nTo get such a token, do the following:\n\n1. Visit the [AOC](https://adventofcode.com) site and make sure you're logged in.\n2. Open your browser's developers tools (Inspect tool).\n3. Navigate to\n    - for Firefox: `Storage` tab, then under `Cookies`\n    - for Chromium: `Application` tab, then under `Cookies`\n4. In there copy the `Value` field of the `session` entry.\n\nOnce you have it, enter the token interactively using:\n\n```\nyaadv -C\n```\n\n## Usage\n\nUse `yaadv -h` to see all available options.\n\nFetch all 25 days input for the latest AOC year: (in `./inputs` by default)\n\n```\nyaadv -I\n```\n\nManaging AOC token:\n\n```\nyaadv -C\n```\n\nFetch input for day 3 of year 2021:\n\n```\nyaadv -Id 3 -y 2021\n```\n\n### Custom output path format\n\n`yaadv` exposes 2 tokens `{{day}}` and `{{year}}` to users, so that you can set custom output path for downloaded input files.\n\nFor eg. To download all input files of 2021 AOC inside a `./inputs` folder while having input files in the format of `day1.txt`, `day2.txt`, etc., You simply do this:\n\n```sh\nyaadv -Iy 2021 -o \"./inputs/day{{day}}.txt\"\n```\n\n-   `-Iy 2021` evaluates to \"download all 25 days input files of 2021 AOC`\n-   `-o` for setting custom output path\n-   and `{{day}}` gets substituted with the corresponding day value.\n\n## Similar Projects\n\n\u003csub\u003eI had found out about these later :-/\u003c/sub\u003e\n\nCheck out these projects:\n\n-   [aocf](https://github.com/nuxeh/aocf)\n-   [arrive](https://github.com/tranzystorek-io/arrive)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnozwock%2Fyaadv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnozwock%2Fyaadv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnozwock%2Fyaadv/lists"}