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.
7w4.net有更好的技能外掛。
Retrieve the text transcript of a video.
python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"
Summarize a video:
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影片文字內容的場景,這是一個簡單有效的解決方案。