← 返回 Skills 市场
zerone0x

Book Fetch

作者 zerone0x · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
612
总下载
1
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install book-fetch
功能描述
Download ebooks (epub/pdf) from Anna's Archive and upload them to MEGA automatically. Use when the user asks to download a book, find an ebook, search for a...
使用说明 (SKILL.md)

book-fetch

Search Anna's Archive, download epub/pdf, upload to mega:/Books/.

Setup (one-time)

Anna's Archive is DNS-blocked on the VPS. The /etc/hosts override is already in place:

186.2.165.77 annas-archive.li

MEGA is configured via rclone (rclone ls mega:/ to verify).

Usage

cd ~/clawd
.venv-books/bin/python3 skills/book-fetch/scripts/book_fetch.py "TITLE AUTHOR"

Options:

  • --format pdf — prefer PDF over epub
  • --dry-run — search only, no download
  • --pick -1 — interactive result picker
  • --pick N — pick result index N (default: 0)

Download Pipeline

  1. Search annas-archive.li → parse data-content attributes for title/author/md5
  2. Fetch annas-archive.li/md5/\x3Cmd5> → find libgen.li/ads.php link
  3. Fetch libgen.li/ads.php → extract get.php?md5=...&key=... direct link
  4. Download file with progress bar
  5. Upload via rclone copy ... mega:/Books/

Fallback: If no libgen.li mirror exists (newer books), tries Anna's Archive fast/slow download links.

Notes

  • New books (2023+) may lack libgen mirrors; fast_download requires AA membership; slow_download is rate-limited
  • venv: ~/clawd/.venv-books/ (requests, beautifulsoup4, lxml)
  • Files cached at /tmp/books/ after download
  • GitHub: \x3Chttps://github.com/zerone0x/book-fetch>
安全使用建议
This skill is internally consistent with its stated purpose, but consider these points before installing: - Legal/policy risk: The skill targets Anna's Archive and libgen mirrors (sites often used for copyrighted material). Using it may violate law or your organization’s policy. Confirm you have the right to download and store the materials. - Hosts override: SKILL.md notes an /etc/hosts override mapping annas-archive.li to a specific IP to bypass DNS blocks. That indicates explicit circumvention of network filtering; be cautious and consider network/security policy implications. - Credentials: The script expects a configured MEGA remote (rclone) or megacmd installed. Ensure your rclone config is secure — the skill will not itself prompt for or read other credentials, but it will cause uploads using whatever MEGA credentials are already configured on the machine. - Data hygiene: Downloads are cached in /tmp/books. Remove temporary files if you do not want retained copies. - Trust the code: Review the bundled script before running and, if possible, run it in an isolated environment (container or VM) since it performs network requests and writes files. If you require higher assurance, ask the author for provenance of the GitHub repo or a signed release. If these considerations are acceptable and you understand the legal context, the skill behaves as advertised. If you are uncomfortable with bypassing DNS blocks or with the legal risks, do not install or run it.
功能分析
Type: OpenClaw Skill Name: book-fetch Version: 1.0.0 The skill is classified as suspicious due to potential prompt injection risks against the AI agent in `SKILL.md`. Specifically, the instruction regarding `/etc/hosts` ('The `/etc/hosts` override is already in place: `186.2.165.77 annas-archive.li`') could be interpreted by an agent as a directive to ensure this system configuration, potentially leading to unauthorized privileged system modification. Additionally, the instruction to execute `rclone ls mega:/` is an explicit command for the agent to run. While the Python script `scripts/book_fetch.py` itself appears robust, using `subprocess.run` with lists and sanitizing user inputs, the instructions in the markdown pose a vulnerability for an agent that might over-interpret or attempt to 'fix' environmental prerequisites.
能力评估
Purpose & Capability
The name/description describe searching Anna's Archive and uploading to MEGA. The included script implements that pipeline (search, resolve libgen links, download, upload via megacmd or rclone). No unrelated environment variables, binaries, or install steps are requested.
Instruction Scope
SKILL.md directs running the provided Python script and references an /etc/hosts override that maps annas-archive.li to a specific IP (used to bypass DNS blocking). The skill caches downloads in /tmp/books and expects a pre-configured 'mega' rclone remote or megacmd. The hosts-override note is outside normal operation and is noteworthy because it suggests bypassing network blocks — functionally coherent with the skill's purpose but potentially problematic or suspect from a policy/legal perspective.
Install Mechanism
No install spec; instruction-only with a bundled script. Dependencies are standard Python libraries (requests, BeautifulSoup, lxml) referenced in SKILL.md for a venv. Nothing downloaded from arbitrary or opaque URLs during install.
Credentials
No env vars or secrets requested by the skill itself. It relies on external tools (rclone or megacmd) already configured with MEGA credentials; that is proportional to the task. No unrelated credentials or config paths are requested.
Persistence & Privilege
Skill does not request persistent or elevated privileges. always is false and the code does not modify system configuration (it only writes cached files to /tmp/books). The SKILL.md mentions an /etc/hosts entry already in place, but the skill does not itself create persistent system changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install book-fetch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /book-fetch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: search Anna's Archive, download epub/pdf, upload to MEGA
元数据
Slug book-fetch
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Book Fetch 是什么?

Download ebooks (epub/pdf) from Anna's Archive and upload them to MEGA automatically. Use when the user asks to download a book, find an ebook, search for a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 612 次。

如何安装 Book Fetch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install book-fetch」即可一键安装,无需额外配置。

Book Fetch 是免费的吗?

是的,Book Fetch 完全免费(开源免费),可自由下载、安装和使用。

Book Fetch 支持哪些平台?

Book Fetch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Book Fetch?

由 zerone0x(@zerone0x)开发并维护,当前版本 v1.0.0。

💬 留言讨论