Summary
- 从 YouTube 视频链接提取字幕并转换为中文文字稿。支持自动生成字幕和手动字幕。
- 使用场景:(1) 用户提供 YouTube 链接并要求提取字幕/文字稿,(2) 用户要求将 YouTube 视频内容转为文字,
- (3) 用户说"帮我把这个 YouTube 视频转成文字"或类似请求。
- 触发词:YouTube…
spacezephyr/read-buddy · Archived
从 YouTube 视频链接提取字幕并转换为中文文字稿。支持自动生成字幕和手动字幕。 使用场景:(1) 用户提供 YouTube 链接并要求提取字幕/文字稿,(2) 用户要求将 YouTube 视频? (3) 用户说"帮我把这个 YouTube 视频转成文字"或类似请求。 触发词:YouTube 字幕、视频转文字、提取字幕、YouTube transcript、视频文字稿。
npx skills add spacezephyr/read-buddy --skill read-youtube-transcript
This repository is archived — consider an actively maintained alternative.
Fetch and extract content from web pages, converting HTML to clean markdown.
5 installs翻译在线文章为中文并保存为 Markdown 格式。当用户需要翻译网页文章、博客文章时使用此技能,例如:"…
5 installsAI热点采集工?
5 installs获取? 触发词:"获取播客更新"、"最近有什么新播客"、"YouTube 更新"、"播客更新"、"有什么新的播客"…
4 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports mul…
20K installsAutomate audio/video transcription, meeting notes, subtitle generation, and content processing
4.1K installsExtract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or…
3.3K installsTranscribe local or remote audio into durable text and timestamp artifacts through PostPlus. Us…
1.2K installsTranscribe local or remote videos into timed transcripts and subtitle-ready artifacts through P…
1.1K installsyt-dlp downloads: video, audio, subtitles, transcripts, clips, playlists.
988 installsOther skills from spacezephyr/read-buddy · top by installs.
npx skills add spacezephyr/read-buddy
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
2,957 B
SUMMARY.md
453 B
从 YouTube 视频提取字幕,输出中文文字稿。
python3 scripts/get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"
scripts/get_transcript.py 提取字幕- 如果字幕是中文:直接输出 - 如果字幕是英文:翻译为中文后输出
| 参数 | 说明 | 默认值 |
|---|---|---|
url |
YouTube 视频链接或 ID | 必填 |
-f, --format |
输出格式: text, markdown, json |
markdown |
-t, --timestamps |
包含时间戳 | 否 |
-l, --lang |
首选语言(逗号分隔) | zh,en |
-o, --output |
输出文件路径 | stdout |
python3 scripts/get_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
python3 scripts/get_transcript.py -t "https://youtu.be/VIDEO_ID"
python3 scripts/get_transcript.py -o output.md "https://www.youtube.com/watch?v=VIDEO_ID"
python3 scripts/get_transcript.py -f json "VIDEO_ID"
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_ID脚本按以下顺序查找字幕:
如果获取到的是英文字幕,需要翻译为中文:
| 错误 | 原因 | 解决方案 |
|---|---|---|
| No captions available | 视频无字幕 | 告知用户该视频没有可用字幕 |
| Cannot extract video ID | URL 格式错误 | 请求用户提供正确的 YouTube 链接 |
| 网络超时 | 网络问题 | 重试或检查网络连接 |
# 视频标题
- **Video ID**: abc123
- **语言**: 中文(自动生成)
- **链接**: https://www.youtube.com/watch?v=abc123
---
## 文字稿
这是视频的第一段内容...
这是视频的第二段内容...