✓ Verified 🌐 Web Scrapers ✓ Enhanced Data

Book Fetch

Download ebooks (epub/pdf) from Anna's Archive and upload them to MEGA automatically.

Rating
4.6 (245 reviews)
Downloads
883 downloads
Version
1.0.0

Overview

Download ebooks (epub/pdf) from Anna's Archive and upload them to MEGA automatically.

Complete Documentation

View Source →

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:

text
186.2.165.77 annas-archive.li
MEGA is configured via rclone (rclone ls mega:/ to verify).

Usage

bash
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

  • Search annas-archive.li → parse data-content attributes for title/author/md5
  • Fetch annas-archive.li/md5/ → find libgen.li/ads.php link
  • Fetch libgen.li/ads.php → extract get.php?md5=...&key=... direct link
  • Download file with progress bar
  • 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:

Installation

Terminal bash

openclaw install book-fetch
    
Copied!

Tags

#browser_and-automation

Quick Info

Category Web Scrapers
Model Claude 3.5
Complexity One-Click
Author zerone0x
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install book-fetch