Expand description
Fast parallel transcript extraction — watch-page scraping + Innertube + fallbacks.
All sources race simultaneously; first valid result wins within 15s.
§Source Priority
- Watch-page + ANDROID Innertube — GET /watch to extract live API key, then POST Innertube with ANDROID client (bypasses poToken/exp=xpe). Returns XML transcript from clean baseUrl. Same technique as youtube-transcript-api.
- ANDROID Innertube direct — POST with hardcoded API key (no watch-page fetch; faster but may break if key changes). Both Sources 1 & 2 race.
- Invidious captions API (community instance)
- Piped captions API (community instance)
Functions§
- align_
to_ chapters - Align transcript entries to video chapters.
- fetch_
transcript - Fetch enhanced transcript by racing all sources simultaneously.