A Python command-line script that retrieves a YouTube video's transcript using the youtube-transcript-api library, with optional timestamp formatting and file output.
Highlights
Extracts video IDs from multiple YouTube URL patterns or accepts raw IDs.
Formats timestamps into HH:MM:SS or MM:SS when requested.
Provides a simple CLI powered by uv for easy execution.
Supports both manually created and auto‑generated captions via the API.
Can write the transcript to a user‑specified file.