youtube-transcribe-skill

Featured

Extract subtitles/transcripts from YouTube videos. Triggers: "youtube transcript", "extract subtitles", "video captions", "视频字幕", "字幕提取", "YouTube转文字", "提取字幕".

AI & Automation 1,609 stars 242 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# YouTube Transcript Extraction Extract subtitles/transcripts from a YouTube video URL and save them as a local file. Input YouTube URL: $ARGUMENTS ## Step 1: Verify URL Confirm the input is a valid YouTube URL (supports `youtube.com/watch?v=`, `youtu.be/`, and `youtube.com/shorts/` formats). If no URL is provided via arguments, check the conversation context for a YouTube link. ## Step 2: CLI Quick Extraction (Priority Attempt) Use command-line tools to quickly extract subtitles. ### 2.1 Check Tool Availability Execute `which yt-dlp`. - If `yt-dlp` is **found**, proceed to 2.2. - If `yt-dlp` is **not found**, skip to **Step 3**. ### 2.2 Get Video Title ```bash yt-dlp --cookies-from-browser=chrome --get-title "[VIDEO_URL]" ``` - **Tip**: Always add `--cookies-from-browser` to avoid sign-in restrictions. Default to `chrome`. - If it fails with a browser error (e.g., "Could not open Chrome"), ask the user to specify their available browser (e.g., `firefox`, `safari`, `edge`) and retry. ### 2.3 Download Subtitles ```bash yt-dlp --cookies-from-browser=chrome --write-auto-sub --write-sub --sub-lang zh-Hans,zh-Hant,en --skip-download --output "<Video Title>.%(ext)s" "[VIDEO_URL]" ``` ### 2.4 Convert to Plain Text `yt-dlp` saves subtitles as `.vtt` or `.srt` files. Convert the downloaded file to plain `Timestamp Text` format: 1. Read the downloaded subtitle file (`.vtt` or `.srt`). 2. Strip VTT/SRT headers, styling tags, and duplicate lines. 3. Save as `<Video Title...

Details

Author
feiskyer
Repository
feiskyer/claude-code-settings
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category