返回顶部
y

youtube-transcript-generatorYouTube字幕提取

Download and generate clean, readable transcripts from any YouTube video. Extracts subtitles (auto-generated or manual), removes timestamps and formatting, and outputs a clean paragraph-style transcript. Use when asked to transcribe, get transcript, or extract text from a YouTube video.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
412
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

youtube-transcript-generator

YouTube 转录文本生成器

从任意YouTube视频链接下载干净的转录文本。

系统要求

  • - 必须安装 yt-dlp(通过 brew install yt-dlp 或 pip install yt-dlp 安装)

使用方法

使用YouTube链接运行捆绑脚本:

bash
bash scripts/gettranscript.sh https://www.youtube.com/watch?v=VIDEOID

该脚本将:

  1. 1. 首先尝试下载英文手动字幕
  2. 回退到自动生成的英文字幕
  3. 如果英文不可用,则尝试所有可用语言
  4. 将原始字幕文件清理为可读段落
  5. 将转录文本输出到标准输出并保存至 transcriptVIDEOID.txt

选项

bash

保存到指定文件


bash scripts/get_transcript.sh URL output.txt

获取带时间戳的转录文本(默认:不带时间戳)

bash scripts/get_transcript.sh URL output.txt en timestamps

获取特定语言的转录文本

bash scripts/get_transcript.sh URL output.txt fr

工作原理

  1. 1. yt-dlp 下载字幕轨道(VTT/SRT格式)
  2. 脚本去除HTML标签和重复行
  3. 不带时间戳(默认): 合并为清晰可读的段落
  4. 带时间戳: 保留每行前的 [HH:MM:SS] 标记,便于参考

输出示例

输入:https://www.youtube.com/watch?v=HMTxOecbyPg

输出:

How OpenClaw Runs My Entire Business. I record a podcast episode and that is
literally the only thing I do. Everything else is handled by 13 AI agents
running on a Mac Mini in my office...

故障排除

  • - 未找到字幕:并非所有视频都有字幕。脚本将报告哪些语言可用。
  • 未找到 yt-dlp:使用 brew install yt-dlp(macOS)或 pip install yt-dlp 安装。
  • 请求频率限制:稍等片刻后重试。YouTube偶尔会限制字幕请求。

相关链接

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 youtube-transcript-generator-1776278660 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 youtube-transcript-generator-1776278660 技能

通过命令行安装

skillhub install youtube-transcript-generator-1776278660

下载

⬇ 下载 youtube-transcript-generator v1.0.0(免费)

文件大小: 3.95 KB | 发布时间: 2026-4-16 18:14

v1.0.0 最新 2026-4-16 18:14
Initial release. Download clean transcripts from any YouTube video with optional timestamps.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部