A Python package for downloading YouTube transcripts and audio with multiple output formats.
- Download transcripts from YouTube videos and channels
- Fallback to audio download and transcription when transcripts are unavailable
- Multiple output formats (Markdown, HTML)
- Channel-wide processing
- Progress tracking and resumable downloads
- Cookie authentication support
pip install -e .For development:
pip install -e ".[dev]"yt-transcript https://www.youtube.com/c/ChannelNameyt-transcript https://www.youtube.com/c/ChannelName --audioyt-transcript https://www.youtube.com/c/ChannelName --cookies cookies.txtyt-transcript https://www.youtube.com/c/ChannelName --output-format htmlyt-transcript https://www.youtube.com/c/ChannelName --cookies-from-browser chromeThe following options are available:
| Option | Description |
|---|---|
--audio |
Download audio when transcripts are unavailable |
--cookies |
Path to cookies file for authentication |
--cookies-from-browser |
Extract cookies from browser (chrome, firefox, etc) |
--output-format |
Output format (markdown or html) |
--output-file |
Custom output filename |
pytestpython setup.py sdist bdist_wheelMIT