返回 Skill 列表
extension
分类: 效率与办公无需 API Key

YouTube Watcher

获取并读取YouTube视频字幕。适用于需要总结视频、回答视频相关问题或提取视频信息的场景。

person作者: michaelgatharahubclawhub

YouTube Watcher

Fetch transcripts from YouTube videos to enable summarization, QA, and content extraction.

Usage

Get Transcript

Retrieve the text transcript of a video.

python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"

Examples

Summarize a video:

  1. Get the transcript:
    python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    
  2. Read the output and summarize it for the user.

Find specific information:

  1. Get the transcript.
  2. Search the text for keywords or answer the user's question based on the content.

Notes

  • Requires yt-dlp to be installed and available in the PATH.
  • Works with videos that have closed captions (CC) or auto-generated subtitles.
  • If a video has no subtitles, the script will fail with an error message.