Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 890 Bytes

File metadata and controls

40 lines (28 loc) · 890 Bytes

AI EPUB Book Summarizer

Simple tool to get detailed Spanish summaries from EPUB books. No configuration needed.

Quick Start

# Install
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
echo "OPENAI_API_KEY=your_api_key" > .env

# Run
python3 summarize_book.py "book.epub"

That's it! You'll get:

  • Chapter summaries: ch01_summary.md, ch02_summary.md, etc.
  • Complete book summary: BOOK_summary.md

Optional: Custom Output Directory

python3 summarize_book.py "book.epub" "/path/to/output"

How It Works

  1. Extracts EPUB content
  2. For each chapter:
    • Short chapters: Direct summary
    • Long chapters: Extract detailed notes from chunks, then synthesize complete summary
  3. Creates global book summary from all chapters

All summaries are in Spanish, detailed, and preserve the complete content.

License

MIT