1.5 KiB
1.5 KiB
name, description, author, version, triggers, metadata
| name | description | author | version | triggers | metadata | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| youtube-watcher | 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. | michael gathara | 1.0.0 |
|
|
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:
- Get the transcript:
python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" - Read the output and summarize it for the user.
Find specific information:
- Get the transcript.
- Search the text for keywords or answer the user's question based on the content.
Notes
- Requires
yt-dlpto 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.