How mdanasaliusmani/youtube_bot_learner works
This repository automates creation of channel-specific YouTube Shorts: choose a topic, generate a script and image prompts, create visuals and narration, produce timed captions, render a vertical video, and optionally upload it. The run script coordinates these stages and also handles language variants and repeat-avoidance state. The README documents scheduled daily runs, but workflow files are orchestration infrastructure rather than product runtime components. The README describes Hugging Face images, while the sampled image implementation calls DeAPI; unsampled provider behavior is not inferred.
Main entry points: run_short.py Short runner · groq_script.py Script generator · myth_topics.py Myth topic rotation · images.py Image generation
Components 17
Topic and scripting
- Channel presets
pipeline/channel_presets.py - Myth topic rotation
pipeline/myth_topics.py - Script generator
pipeline/groq_script.py
Media creation
- Image generation
pipeline/images.py - Edge TTS synthesis
pipeline/edge_tts_synth.py - Timed captions
pipeline/captions.py
Video assembly
- Short renderer
pipeline/render_short.py
Publishing and state
- Story history
pipeline/story_history.py - YouTube uploader
pipeline/youtube_upload.py - Myth rotation state
pipeline/myth_topics.py
Other components
- Channel operator
- Short runner
scripts/run_short.py - Groq API
- DeAPI service
- Edge TTS service
- FFmpeg
- YouTube
Connections 17
- Channel operator → Short runner: runs with options
README.md - Short runner → Channel presets: selects channel
scripts/run_short.py - Short runner → Myth topic rotation: picks myth topic
scripts/run_short.py - Myth topic rotation → Myth rotation state: reads and updates
pipeline/myth_topics.py - Short runner → Script generator: requests script
scripts/run_short.py - Script generator → Channel presets: uses preset
pipeline/groq_script.py - Script generator → Story history: adds history context
pipeline/groq_script.py - Script generator → Groq API: generates script
README.md - Short runner → Image generation: generates scenes
scripts/run_short.py - Image generation → DeAPI service: submits image jobs
pipeline/images.py - Short runner → Edge TTS synthesis: synthesizes narration
README.md - Edge TTS synthesis → Edge TTS service: requests speech
README.md - Short runner → Timed captions: builds timed SRT
README.md - Short runner → Short renderer: assembles video
README.md - Short renderer → FFmpeg: renders video
pipeline/render_short.py - Short runner → YouTube uploader: uploads optionally
scripts/run_short.py - YouTube uploader → YouTube: uploads Short
pipeline/youtube_upload.py