YouTube Transcript Fetcher

v0.1.3

Fetch full YouTube transcripts with robust InnerTube fallback. Use when extracting captions/transcripts from a YouTube URL, channel, or batch config, especia...

1· 192· 2 versions· 0 current· 0 all-time· Updated 7h ago· MIT-0
by小島 伊織 / Iori Kojima@ioridev

Install

openclaw skills install youtube-transcript-fetcher

Fetch transcripts from YouTube videos. Prefer this skill when the goal is to obtain source transcript text, not to summarize.

Run ./youtube-transcript-fetcher --url <youtube-url> for a single video. Run ./youtube-transcript-fetcher --channel <channel-id-or-handle> --hours <n> for recent channel videos. Run ./youtube-transcript-fetcher --config config/channels.example.json --daily for batch mode.

The main script is scripts/youtube_transcript_fetcher.py. It uses watch-page scraping plus InnerTube player API fallback with multiple client profiles (ANDROID, WEB, TVHTML5_SIMPLY_EMBEDDED_PLAYER, IOS) to recover caption tracks that simpler methods miss, including cases where only YouTube auto-generated captions are available.

Install Python dependencies with pip install -r requirements.txt before first use.

Return the transcript text from the generated JSON output. Do not rely on summary fields because this skill is intentionally transcript-first.

Version tags

latestvk971gm8e9e395yts45gsreq8y184hqh2

Runtime requirements

Binspython3, yt-dlp

Install

Install yt-dlp (brew)
Bins: yt-dlp
brew install yt-dlp