← Back to Skills Marketplace
zerone0x

Book Fetch

by zerone0x · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
612
Downloads
1
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install book-fetch
Description
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...
README (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>
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install book-fetch
  3. After installation, invoke the skill by name or use /book-fetch
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: search Anna's Archive, download epub/pdf, upload to MEGA
Metadata
Slug book-fetch
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 612 downloads so far.

How do I install Book Fetch?

Run "/install book-fetch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Book Fetch free?

Yes, Book Fetch is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Book Fetch support?

Book Fetch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Book Fetch?

It is built and maintained by zerone0x (@zerone0x); the current version is v1.0.0.

💬 Comments