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 title on Anna's Archive/libgen, or add a book to their MEGA library.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "book-fetch" with this command: npx skills add zerone0x/book-fetch

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/<md5> → 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: https://github.com/zerone0x/book-fetch

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ai Competitor Analyzer

提供AI驱动的竞争对手分析,支持批量自动处理,提升企业和专业团队分析效率与专业度。

Registry SourceRecently Updated
General

Ai Data Visualization

提供自动化AI分析与多格式批量处理,显著提升数据可视化效率,节省成本,适用企业和个人用户。

Registry SourceRecently Updated
General

Ai Cost Optimizer

提供基于预算和任务需求的AI模型成本优化方案,计算节省并指导OpenClaw配置与模型切换策略。

Registry SourceRecently Updated