Simple tool to get detailed Spanish summaries from EPUB books. No configuration needed.
# 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
python3 summarize_book.py "book.epub" "/path/to/output"- Extracts EPUB content
- For each chapter:
- Short chapters: Direct summary
- Long chapters: Extract detailed notes from chunks, then synthesize complete summary
- Creates global book summary from all chapters
All summaries are in Spanish, detailed, and preserve the complete content.
MIT