Skip to main content

Module transcript

Module transcript 

Source
Expand description

Fast parallel transcript extraction — watch-page scraping + Innertube + fallbacks.

All sources race simultaneously; first valid result wins within 15s.

§Source Priority

  1. 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.
  2. ANDROID Innertube direct — POST with hardcoded API key (no watch-page fetch; faster but may break if key changes). Both Sources 1 & 2 race.
  3. Invidious captions API (community instance)
  4. 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.