← 返回
内容创作 中文

tube-summary

Search YouTube videos on any topic, extract English subtitles, and generate detailed summaries with key topics, quotes, and timestamps.
搜索任何主题的YouTube视频,提取英文字幕,并生成包含关键主题、引语及时间戳的详细摘要。
dillera
内容创作 clawhub v1.0.0 1 版本 99897.4 Key: 无需
★ 2
Stars
📥 2,882
下载
💾 331
安装
1
版本
#latest

概述

tube-summary

Search YouTube for videos on any topic, then extract and summarize their content using subtitles.

Quick Start

Step 1: Search for Videos

When asked about a topic, search YouTube and list the top 10 results:

python3 scripts/youtube-search.py "your search query"

This returns a numbered list of videos with titles, channels, and view counts.

Step 2: User Picks a Video

The user selects one video by number (e.g., "3" for the third video).

Step 3: Download Subtitles

Extract English subtitles from the selected video using yt-dlp:

yt-dlp --write-subs --sub-langs en --skip-download "VIDEO_URL"

This creates a .en.vtt subtitle file without downloading the video.

Step 4: Process & Summarize

Use the subtitle processor to analyze and summarize:

python3 scripts/process-subtitles.py "path/to/subtitle-file.vtt"

This generates:

  • Key Topics: Main subjects covered in the video
  • Summary: Concise 2-3 paragraph description of content
  • Timestamps: Notable moments with context
  • Key Quotes: Important statements from speakers

Workflow

  1. Searchyoutube-search.py "" → Display top 10 videos
  2. User selects → e.g., "Video 5"
  3. Extract URL → From the search results
  4. Download subsyt-dlp --write-subs --sub-langs en --skip-download "URL"
  5. Processprocess-subtitles.py "subtitle.vtt"
  6. Present → Formatted summary with key points

Prerequisites

  • yt-dlp (install: pip install yt-dlp)
  • requests (for YouTube search fallback)
  • Python 3.7+

Notes

  • If YouTube search API is unavailable, the fallback uses web scraping via requests
  • Subtitles may be auto-generated if not manually authored
  • Some videos may not have English subtitles available
  • The subtitle file is created in the same directory as yt-dlp is run

Example Usage

User: "Tell me about Rust programming language"

→ Search returns 10 videos about Rust

User: "Summarize video 3"

→ Downloads subtitles from video 3
→ Processes and returns detailed summary

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 12:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,106
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,237
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,537