Back to list
eyadsibai

youtube-transcribe

by eyadsibai

0🍴 0📅 Jan 15, 2026

SKILL.md


name: youtube-transcribe description: Use when "youtube transcript", "extract subtitles", "video captions", "get transcript", "video to text" version: 1.0.0

YouTube Transcript Extraction

Extract subtitles and transcripts from YouTube videos.


Methods

MethodToolWhen to Use
CLIyt-dlpFast, reliable, preferred
BrowserChrome automationFallback when CLI fails
APIyoutube-transcript-apiPython programmatic access

yt-dlp Method (Preferred)

Basic Command

yt-dlp --write-auto-sub --write-sub --sub-lang en --skip-download -o "%(title)s.%(ext)s" "VIDEO_URL"

Key Flags

FlagPurpose
--write-subDownload manual subtitles
--write-auto-subDownload auto-generated subtitles
--sub-lang LANGSpecify language (en, zh-Hans, etc.)
--skip-downloadDon't download video
--cookies-from-browser chromeUse browser cookies for restricted videos

Common Issues

IssueSolution
Sign-in requiredAdd --cookies-from-browser chrome
No subtitles foundVideo has no captions available
Age-restrictedUse cookies from logged-in browser

Browser Automation Fallback

When CLI fails, use browser automation:

  1. Open video page - Navigate to YouTube URL
  2. Expand description - Click "...more" button
  3. Open transcript - Click "Show transcript" button
  4. Extract text - Query DOM for transcript segments

DOM Selectors

ElementSelector
Transcript segmentsytd-transcript-segment-renderer
Timestamp.segment-timestamp
Text.segment-text

Output Formats

FormatExtensionUse Case
VTT.vttWeb standard, includes timing
SRT.srtVideo editing, media players
TXT.txtPlain text, no timing

Convert VTT to Plain Text

# Strip timing and formatting
sed '/^[0-9]/d; /^$/d; /WEBVTT/d; /-->/d' video.vtt > video.txt

Language Codes

LanguageCode
Englishen
Chinese (Simplified)zh-Hans
Chinese (Traditional)zh-Hant
Spanishes
Multipleen,es,zh-Hans

Best Practices

PracticeWhy
Try manual subs firstHigher quality than auto-generated
Use cookies for restrictedAvoids sign-in errors
Check multiple languagesSome videos have better subs in other languages
Verify transcript existsNot all videos have captions

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon