Extract YouTube video transcripts from existing captions (manual or auto-generated) using yt-dlp, with optional timestamps and local SQLite caching. Use when...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install youtube-transcript-yt-dlp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install youtube-transcript-yt-dlp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/youtube-transcript-yt-dlp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: yt_transcript description: Extract YouTube video transcripts from existing captions (manual or auto-generated) using yt-dlp, with optional timestamps and local SQLite caching. Use when the user asks for a YouTube transcript, captions, subtitles, or wants to turn a YouTube link into text for summarization/search. metadata: {"openclaw":{"requires":{"bins":["python3","yt-dlp"]},"os":["linux","darwin","win32"]}} user-invocable: true ---
This skill extracts transcripts from existing YouTube captions.
Primary behavior
- JSON segments (default) or - plain text (--text)
Reliability behavior
yt-dlp reports no captions for a video, the script tries a fallback: 1) YouTube’s transcript panel (youtubei get_transcript) when accessible
This published version intentionally does not call third-party transcript providers.
Privacy note: This published version only contacts YouTube directly (via yt-dlp and the transcript panel fallback). It does not send video IDs/URLs to third-party transcript providers.
Cookies: Cookies are treated as secrets.
--cookies / YT_TRANSCRIPT_COOKIES, but does not auto-load cookies from inside the skill directory.~/.config/yt-transcript/.Path safety: This skill restricts --cookies and --cache paths to approved directories.
~/.config/yt-transcript/{baseDir}/cache/ and ~/.config/yt-transcript/Script path:
{baseDir}/scripts/yt_transcript.pyTypical usage:
python3 {baseDir}/scripts/yt_transcript.py python3 {baseDir}/scripts/yt_transcript.py --lang en python3 {baseDir}/scripts/yt_transcript.py --text python3 {baseDir}/scripts/yt_transcript.py --no-ts Cookies (optional, but often required on VPS IPs):
python3 {baseDir}/scripts/yt_transcript.py --cookies /path/to/youtube-cookies.txt YT_TRANSCRIPT_COOKIES=/path/to/youtube-cookies.txtPublishing safety note: Cookies are optional, so YT_TRANSCRIPT_COOKIES is intentionally not required by skill metadata. Only set it if you need authenticated access.
Best practice: store cookies outside the skill folder (so you never accidentally publish them), e.g. ~/.config/yt-transcript/youtube-cookies.txt, and point to it via --cookies or YT_TRANSCRIPT_COOKIES.
A JSON object:
video_id: 11-char idlang: chosen languagesource: manual | auto | panelsegments: list of { start, duration, text } (or text-only when --no-ts)--text)A newline-separated transcript.
[12.34s].--no-ts to output only the text lines.Default cache DB:
{baseDir}/cache/transcripts.sqliteCache key includes:
video_id, lang, source, include_timestamp, formatRecommended local path (ignored by git/publish):
{baseDir}/cache/youtube-cookies.txt (chmod 600)yt-dlp is missing, instruct the user to install it (recommended): - install pipx - pipx install yt-dlp - ensure yt-dlp is on PATH
安装 YouTube Transcript (yt-dlp captions) 后,可以对 AI 说这些话来触发它
Help me get started with YouTube Transcript (yt-dlp captions)
Explains what YouTube Transcript (yt-dlp captions) does, walks through the setup, and runs a quick demo based on your current project
Use YouTube Transcript (yt-dlp captions) to extract YouTube video transcripts from existing captions (manual or...
Invokes YouTube Transcript (yt-dlp captions) with the right parameters and returns the result directly in the conversation
What can I do with YouTube Transcript (yt-dlp captions) in my design & creative workflow?
Lists the top use cases for YouTube Transcript (yt-dlp captions), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/youtube-transcript-yt-dlp/ 目录(个人级,所有项目可用),或 .claude/skills/youtube-transcript-yt-dlp/(项目级)。重启 AI 客户端后,用 /youtube-transcript-yt-dlp 主动调用,或让 AI 根据上下文自动发现并使用。
YouTube Transcript (yt-dlp captions) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
YouTube Transcript (yt-dlp captions) 可免费安装使用。请查阅仓库了解许可证信息。
Extract YouTube video transcripts from existing captions (manual or auto-generated) using yt-dlp, with optional timestamps and local SQLite caching. Use when...
Automate my design & creative tasks using YouTube Transcript (yt-dlp captions)
Identifies repetitive steps in your workflow and sets up YouTube Transcript (yt-dlp captions) to handle them automatically
YouTube Transcript (yt-dlp captions) 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。