colinodell/aoc-downloader
Composer 安装命令:
composer create-project colinodell/aoc-downloader
包简介
Downloads Advent of Code puzzles and inputs
关键字:
README 文档
README
Simple PHP-based utility to download all Advent of Code puzzles and inputs locally.
Requirements
This project requires PHP 7.4 or higher.
Installation
There are three ways to download and use this utility:
Composer Dependency
Using PHP for your AoC puzzles? You can include this as a dev dependency in your repository:
composer require --dev colinodell/aoc-downloader
Standalone PHAR
Don't want to mix dependencies or prefer a single executable file?
A pre-compiled PHAR is also available via the Releases tab.
Simply download the .phar file, make it executable, and run it.
From Source
git clone https://github.com/colinodell/aoc-downloader.git
cd aoc-downloader
composer update -o --no-dev
Usage
You'll need to log into adventofcode.com and grab your session cookie using your browser's dev tools:
You can then pass that as an argument to this utility:
Usage:
./bin/aoc-downloader [options] [--] <session_id>
Arguments:
session_id Session ID (from the adventofcode.com `session` cookie
Options:
-o, --output=OUTPUT The directory to save the downloaded files [default: "./puzzles"]
-y, --year=YEAR The year to download puzzles for (default is all years)
-h, --help Display help for the given command. When no command is given display help for the ./bin/download.php command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
It will save both the puzzle test and input data locally:
puzzles/2020
├── day01
│ ├── input.txt
│ └── README.md
├── day02
│ ├── input.txt
│ └── README.md
├── day03
│ ├── input.txt
│ └── README.md
├── day04
│ ├── input.txt
│ └── README.md
├── day05
│ ├── input.txt
│ └── README.md
├── day06
│ ├── input.txt
│ └── README.md
├── day07
│ ├── input.txt
│ └── README.md
├── day08
│ ├── input.txt
│ └── README.md
├── day09
│ ├── input.txt
│ └── README.md
├── day10
│ ├── input.txt
│ └── README.md
...
colinodell/aoc-downloader 适用场景与选型建议
colinodell/aoc-downloader 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「aoc」 「adventofcode」 「advent」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 colinodell/aoc-downloader 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 colinodell/aoc-downloader 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 colinodell/aoc-downloader 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-14
