Loading...
Loading...
Extract subtitles from YouTube video links and convert them into Chinese transcripts. Supports both auto-generated and manual subtitles. Usage scenarios: (1) Users provide a YouTube link and request subtitle/transcript extraction, (2) Users request to convert YouTube video content into text, (3) Users say "Help me convert this YouTube video to text" or similar requests. Trigger words: YouTube subtitles, video to text, extract subtitles, YouTube transcript, video text draft.
npx skill4agent add zephyrwang6/myskill youtube-transcript-cnpython3 scripts/get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"scripts/get_transcript.py| Parameter | Description | Default Value |
|---|---|---|
| YouTube video link or ID | Required |
| Output format: | |
| Include timestamps | No |
| Preferred languages (comma separated) | |
| Output file path | 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| Error | Cause | Solution |
|---|---|---|
| No captions available | The video has no subtitles | Inform the user that there are no available subtitles for this video |
| Cannot extract video ID | URL format error | Ask the user to provide a correct YouTube link |
| Network timeout | Network problem | Retry or check network connection |
# 视频标题
- **Video ID**: abc123
- **语言**: 中文(自动生成)
- **链接**: https://www.youtube.com/watch?v=abc123
---
## 文字稿
这是视频的第一段内容...
这是视频的第二段内容...