计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
youtube-content-gen【效率与协作】A complete pipeline to convert YouTube videos into high-quality, SEO-optimized guide pages using Gemini AI.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
A "video-to-page" pipeline that automates the creation of high-quality guide pages from YouTube videos. It extracts transcripts, analyzes content with Gemini AI, and generates Next.js pages with SEO best practices.
resources/scripts/)video_processor.py: The main entry point. Orchestrates the flow.transcript_extractor.py: Wraps youtube-transcript-api to get subtitles.content_analyzer.py: Uses Gemini API to understand video content and structure the page.page_generator.py: Renders Jinja2 templates into .tsx and .module.css files.image_handler.py: Downloads and optimizes video thumbnails.resources/templates/)page.tsx.j2: Next.js page template with built-in Schema.org, responsive video embed, and SEO metadata.page.module.css.j2: Matching CSS module for the generated page.Install the required Python dependencies:
pip install -r resources/requirements.txt
Set your Gemini API key:
$env:GEMINI_API_KEY = "your_api_key_here"
From a YouTube URL:
python resources/scripts/video_processor.py --url "https://www.youtube.com/watch?v=VIDEO_ID"
From a Keyword (Auto-Search):
python resources/scripts/video_processor.py --keyword "game topic to search"
The script will:
app/guides/[topic-slug]/.public/images/guides/[topic-slug]/.Run the build to ensure everything is correct:
npm run build