Claude Skill
zarazhangrui/youtube-to-ebook
一款 Claude Skill,可将 YouTube 频道字幕转换为 EPUB 电子书并定期通过邮件发送给您。实现从视频内容中自动化学习。
概览
仓库信息
安装这个 Skill
git clone https://github.com/YOUR_USERNAME/youtube-to-ebook.gitRegistry 信息
git clone https://github.com/YOUR_USERNAME/youtube-to-ebook.gitpip install -r requirements.txtpip install streamlit
项目简介
一款 Claude Skill,可将 YouTube 频道的字幕自动转换为 EPUB 电子书,并按定期计划发送到您的电子邮箱。
Claude skill for turning YouTube transcripts from your favorite channels into EPUB ebooks, delivered to your email inbox regularly
要点
- 将 YouTube 字幕转换为 EPUB 格式
- 自动发送至电子邮箱
- 支持定期/计划更新
- 构建为 Claude Skill
使用场景
- 从教育类 YouTube 内容创建电子书
- 归档视频字幕以供离线阅读
- 为喜爱的频道自动化内容交付
- 从视频构建个人知识库
README 摘要
# YouTube to Ebook Transform YouTube videos from your favorite channels into beautifully formatted EPUB ebooks. ## Features - Fetches latest videos from YouTube channels (automatically filters out Shorts) - Extracts transcripts from videos - Uses Claude AI to transform transcripts into polished magazine-style articles - Generates EPUB ebooks readable on any device - Optional: Email delivery with ebook attachment - Optional: Web dashboard for easy management ## Quick Start 1. **Clone and install:** ```bash git clone https://github.com/YOUR_USERNAME/youtube-to-ebook.git cd youtube-to-ebook pip install -r requirements.txt ``` 2. **Set up API keys:** ```bash cp .env.example .env # Edit .env with your keys ``` 3. **Add your channels:** ```bash # Edit channels.txt with YouTube channel handles @mkbhd @veritasium @3blue1brown ``` 4. **Generate your ebook:** ```bash python main.py ``` ## Getting API Keys ### YouTube Data API (Free) 1. Go to [Google Cloud Console](https://console.cloud.google.com/) 2. Create a new project 3. Enable "YouTube Data API v3" 4. Create credentials → API Key 5. Copy to `.env` ### Anthropic API 1. Go to [Anthropic Console](https://console.anthropic.com/) 2. Create an API key 3. Copy to `.env` ## Web Dashboard Launch a friendly web interface: ```bash pip install streamlit python -m streamlit run dashboard.py ``` ## Automation (Mac) Run automatically every week: ```bash # Copy the plist to LaunchAgents cp com.youtube.newsletter.plist ~/Library/LaunchAgents/ # Load it launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.youtube.newsletter.plist ``` ## Troubleshooting ### "ModuleNotFoundError" when running automation Your Mac may have multiple Python installations. The automation
话题
暂无话题