get-youtube-scripts

Installation
SKILL.md

get-youtube-scripts

Fallback-only: pull one source-language caption track as clean plain text + metadata using yt-dlp. Use baoyu-youtube-transcript first for normal transcript, chapter, SRT, cover, translation, and cache work.

Why yt-dlp (not youtube-transcript-api): yt-dlp tracks YouTube's changes far more aggressively, and youtube-transcript-api gets PoToken-blocked from cloud IPs (2025–2026). yt-dlp works from a residential IP.

When to use

  • baoyu-youtube-transcript selected a lossy translated track, hit 429, or only clean text should be returned without saved artifacts.
  • Any URL form — watch?v=, youtu.be/, /shorts/, /live/. Pass the URL straight to yt-dlp; never parse the video id by hand.

When NOT to use: the video has no captions at all → report 자막 없음 and stop. Audio→text (Whisper) is out of scope.

The one trap that matters: pick the source (-orig) track

YouTube exposes EVERY language as an auto-translation. The source track is suffixed -orig (ko-orig, en-orig, …). The bare 2-letter code (ko, en) can be a lossy auto-translation of the original back into its own language. So the procedure discovers the real track list first and selects ONE track by explicit priority — it never trusts file-glob order, and it never bulk-downloads every language (that triggers 429).

Priority order: <lang>-orig → bare <lang>, manual preferred over auto-generated. Edit PRIORITY for a non-ko/en video.

Procedure (run as one block)

Installs
5
First Seen
Jul 10, 2026