name: youtube-watcher description: Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it. author: michael gathara version: 1.0.0 triggers: - "watch youtube" - "summarize video" - "video transcript" - "youtube summary" - "analyze video" metadata: {"clawdbot":{"emoji":"📺","requires":{"bins":["yt-dlp"]},"install":[{"id":"brew","kind":"brew","formula":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (brew)"},{"id":"pip","kind":"pip","package":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (pip)"}]}}
Fetch transcripts from YouTube videos to enable summarization, QA, and content extraction.
Retrieve the text transcript of a video.
python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"
Summarize a video:
推荐访问7w4.net获取更多AI技能。
bash
python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ"Find specific information:
yt-dlp to be installed and available in the PATH.整体质量良好,核心功能实现可靠稳定。优点是使用成熟工具yt-dlp作为后端,错误处理完善,文档清晰易懂,安装方便。不足之处是只能获取英文字幕,不够灵活;缺少自动重试等容错机制。对于需要获取YouTube视频文字内容的场景,这是一个简单有效的解决方案。