Project · Creator
yt-insights
Point it at a YouTube channel and get structured insights per video plus an aggregate report. Extracts key takeaways, tools mentioned, and actionable advice. Also scores Short moments with timestamps for clip extraction.
You need transcripts, structured insights, local search, and repeatable reports from video sources.
Run yt-insights run https://www.youtube.com/@ChannelName to get a structured insight file per video and an aggregate report that synthesises patterns across the full channel.
Use it to audit a competitor channel in 10 minutes and identify its editorial strategy. Run it across several channels on the same topic to find uncovered angles. The exported JSON and VTT files also work with RAG pipelines or fine-tuning datasets.
Two pipelines
Insights: per video you get subject, key takeaways, tools mentioned, and actionable advice. An aggregate report synthesises patterns across the whole channel, including its editorial logic, recurring angles, and coverage gaps.
Shorts: the same transcripts go through a scorer that finds the top 3 moments per video (30-90 seconds each) with verbatim text and precise timestamps. Pick one, run one more command, and yt-dlp downloads just that segment.
LLM backends
At runtime, backend selection tries cc-bridge (port 4141), then Ollama, Anthropic API, and MLX. No configuration is needed when one is already running.
Key design choices
stop_reason == "max_tokens"gates writes: truncated responses are never cached, they retry on the next run- yt-dlp runs as a subprocess, never imported as a library (subprocess is the stable contract)
- YouTube VTT rolling captions repeat each phrase 2-3 times as it scrolls;
vtt_parser.pytracks first occurrence per unique text fragment, giving clean timestamped segments - Atomic writes prevent corrupt files on Ctrl-C
- Idempotent processing caches already-analyzed videos;
--forcere-processes everything
Quick start
The project is not published on PyPI. Install from the source repository with uv:
git clone https://github.com/FlorianBruniaux/youtube-video-insights
cd youtube-video-insights
uv sync --extra dev
uv run yt-insights --help
Stack
Python 3.11+ · yt-dlp · ThreadPoolExecutor · Anthropic API / Ollama / cc-bridge / MLX