{"id":36501777,"url":"https://github.com/justorez/pica-cli","last_synced_at":"2026-01-12T02:22:36.578Z","repository":{"id":219704588,"uuid":"749432240","full_name":"justorez/pica-cli","owner":"justorez","description":"😉 哔咔漫画下载器","archived":false,"fork":false,"pushed_at":"2025-10-08T08:04:18.000Z","size":1043,"stargazers_count":155,"open_issues_count":1,"forks_count":396,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-08T10:08:39.223Z","etag":null,"topics":["bika","cli","downloader","pica"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/justorez.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-28T15:16:10.000Z","updated_at":"2025-10-08T08:04:23.000Z","dependencies_parsed_at":"2024-03-17T04:02:05.008Z","dependency_job_id":"d4f4c1f9-db9d-4743-99dc-92b10a4109ea","html_url":"https://github.com/justorez/pica-cli","commit_stats":null,"previous_names":["justorez/pica-dl"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/justorez/pica-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justorez%2Fpica-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justorez%2Fpica-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justorez%2Fpica-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justorez%2Fpica-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justorez","download_url":"https://codeload.github.com/justorez/pica-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justorez%2Fpica-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bika","cli","downloader","pica"],"created_at":"2026-01-12T02:22:34.056Z","updated_at":"2026-01-12T02:22:36.570Z","avatar_url":"https://github.com/justorez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pica-cli\n\n[![NPM Version](https://img.shields.io/npm/v/pica-cli?style=flat-square)](https://www.npmjs.com/package/pica-cli)\n[![publish](https://img.shields.io/github/actions/workflow/status/justorez/pica-cli/publish.yml?style=flat-square\u0026logo=github\u0026label=publish\n)](https://github.com/justorez/pica-cli/actions/workflows/publish.yml)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)\n\n😉 哔咔漫画下载器\n\n![演示](https://s2.loli.net/2024/02/01/Qc7L3qGZOWBPmkR.gif)\n\n- 排行榜：下载当前排行榜的全部漫画\n- 收藏夹：下载当前用户收藏夹的全部漫画\n- 搜索：支持关键字和漫画ID (多个用 # 隔开)。访问哔咔电脑端网站，进入漫画详情，地址栏链接里的 `cid` 就是漫画ID\n- 自动过滤已下载的章节和图片，不会重复下载\n- 按章节批量压缩，配合支持 zip 的漫画阅读软件使用，比如 [Perfect Viewer](https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer)。不限于 `pica-cli` 下载的漫画，只要符合 [cmoics/漫画标题/漫画章节/漫画图片](#) 的目录结构即可。\n- 借助 github action 实现飞速下载，支持从 github artifact 和 file.io 两种方式下载完整漫画包。file.io 无需注册，无需科学上网，文件保存两周，单文件最大 2GB，注意链接只能下载**一次**，下载后文件会自动删除\n- [更新日志](#更新日志)\n\n如果用的开心，求个 star 支持一下，比心 ~ ❤️\n\n## 用法\n\n### 方式一：GitHub Action（推荐）\n\n\u003e ❗️**一次性下载大量漫画，可能会导致 Action 磁盘空间不足或者长时间运行导致任务失败，所以不要一次性下载太多**\n\n利用 github 的免费服务器下载，最关键的是不用科学上网，网速飞快，孩子用了都说好。\n\n```bash\n# 必填，账号名\nPICA_ACCOUNT\n# 必填，账号密码\nPICA_PASSWORD\n```\n\nFork 一份[本仓库](https://github.com/justorez/pica-cli)，将上面两个环境变量，设置为仓库密钥：\n\n![action secret](https://s2.loli.net/2024/01/30/5FxU7olyWC3VAe1.png)\n\n然后点击 Actions，再点击左侧的 `task` 工作流，再点击右侧的 `Run workflow`，输入相关的信息，点击运行。\n\n针对收藏夹漫画太多的情况，已支持指定页码，每次只下载收藏夹的某一页即可。\n\n![action run](https://s2.loli.net/2024/01/30/PmfublZKLFQrth9.png)\n\n等执行完之后，进入详情，在最下方有漫画的完整压缩包，点击下载即可。\n\n![artifact](https://s2.loli.net/2024/01/31/rIlTGfy8O5HiFcV.png)\n\n点击 job 详情查看日志，可以看到 file.io 的下载地址：\n\n![file.io](https://s2.loli.net/2024/01/31/UT4i6zpGjYvDxL3.png)\n\n如果你想自定义过程，请自行修改 [.github/workflows/task.yml](.github/workflows/task.yml)。\n\n### 方式二：直接安装\n\n```bash\npnpm add pica-cli -g\n```\n在自己电脑上配置好环境变量，所需的环境变量如下所示：\n\n```bash\n# 账号名\n# 若无配置，会提示手动输入\nPICA_ACCOUNT=\n# 账号密码\n# 若无配置，会提示手动输入\nPICA_PASSWORD=\n# 代理地址，示例：http://127.0.0.1:7890\nPICA_PROXY=\n# 下载图片的并发数，默认 5\nPICA_DL_CONCURRENCY=5\n# search | favorites | leaderboard\n# 下载内容，分别表示：搜索 | 收藏夹 | 排行榜\nPICA_DL_CONTENT=\n# 搜索关键字或漫画ID，多个用 # 隔开\n# 尽量输入完整漫画名，避免返回过多结果\nPICA_DL_SEARCH_KEYWORDS=\n```\n\n```bash\n# 运行\npica-cli\n\n# 漫画打压缩包\npica-zip\n```\n\n## 开发\n\n```bash\ngit clone https://github.com/justorez/pica-cli.git\n```\n\n拷贝一份 [.env.template](.env.template)，命名为 `.env.local`，填写好后就不用设置环境变量了，配置优先从 `.env.local` 里加载。\n\n```bash\n# 安装依赖\npnpm install\n\n# 运行\npnpm dev\n\n# 漫画打压缩包\npnpm dev:zip\n```\n\n[哔咔 API 文档（非官方）](https://www.apifox.cn/apidoc/shared-44da213e-98f7-4587-a75e-db998ed067ad/doc-1034189)。\n\n## 更新日志\n\n- 2024/06/02 支持下载收藏夹指定页\n- 2024/05/27 修复收藏夹只获取了第一页\n- 2024/04/27 处理响应 400 异常：被禁止访问的漫画\n- 2024/02/21 支持通过命令行输入账号密码，硬编码密钥\n- 2024/02/08 支持下载指定章节\n- 2024/02/01 支持通过漫画ID精确下载\n- 2024/01/31 github action 同时将漫画包上传到 file.io\n- 2024/01/30 提供 github action 的下载方式\n- 2024/01/29 下载完成后，提供命令把漫画按章节批量压缩\n- 2024/01/28 完成基本功能\n\n## 其他\n\n代码参考了 [pica_crawler](https://github.com/lx1169732264/pica_crawler)，本来是想添加新功能，奈何 Python 早就忘光了，只好重写一个。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustorez%2Fpica-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustorez%2Fpica-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustorez%2Fpica-cli/lists"}