Skip to main content

ebook-extractor

Extract plain text from ebooks (EPUB, MOBI, PDF) for analysis, processing, or reading.

소스 정보

저장소
ratacat/ratacats-skills
최근 소스 활동
2026년 7월 9일 17:14
감지된 SKILL.md 언어
영어
스타
8
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
8 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
ebook-extractor
description
Extract plain text from ebooks (EPUB, MOBI, PDF) for analysis, processing, or reading.
metadata
{"category":"developer tools","blurb":"Extract plain text from EPUB, MOBI, and PDF files with local Python tools so agents can search, quote, or analyze book content.","keywords":["ebook","extractor"]}
# Ebook Text Extractor ## Overview Extract plain text from EPUB, MOBI, and PDF files using Python scripts. No LLM calls - pure text extraction. ## Supported Formats | Format | Tool Used | Notes | |--------|-----------|-------| | EPUB | `ebooklib` + `BeautifulSoup` | Direct parsing, preserves structure | | MOBI | Calibre `ebook-convert` | Converts to EPUB first, then extracts | | PDF | `PyMuPDF` (fitz) | Fast, handles most PDFs well | ## Usage **Unified extractor (auto-detects format):** ```bash python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.epub python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.mobi python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.pdf ``` **Output options:** ```bash # To stdout (default) python3 scripts/extract.py book.epub # To file python3 scripts/extract.py book.epub -o output.txt python3 scripts/extract.py book.epub > output.txt ``` **Format-specific scripts:** ```bash python3 scripts/extract_epub.py book.epub python3 scripts/extract_mobi.py book.mobi python3 scripts/extract_pdf.py book.pdf ``` ## Setup ```bash # One-command setup (installs all dependencies) ~/.claude/skills/ebook-extractor/setup.sh # Or manually: pip install -r ~/.claude/skills/ebook-extractor/requirements.txt brew install calibre # macOS, for MOBI support ``` ## Script Location `~/.claude/skills/ebook-extractor/scripts/` ## Common Issues | Problem | Solution | |---------|----------| | Missing package | Run `setup.sh` or `pip install -r requirements.txt` | | MOBI fails | Ensure Calibre is installed: `brew install calibre` | | PDF garbled | Some PDFs are image-based; OCR needed (not supported) |
GitHub에서 보기