How yashvi-vekariya/ai-youtube-shorts-automation works
This is a local YouTube Shorts automation product. Its main workflow runs from scheduled or manual execution through trend discovery, AI idea/script/SEO generation, script checks, voice and footage preparation, video rendering, YouTube upload, and analytics recording. README documentation supplies the broader capability flow; source excerpts confirm key orchestration and module relationships. Several subsystems are represented from documentation or the source index rather than inspected implementation excerpts, so those edges cite the README where documented.
Main entry points: main.py Pipeline runner · analytics_engine.py Performance analytics · ai_engine.py AI generation · multi_channel.py Multi-channel manager
Components 22
Run orchestration
- Scheduler
scheduler.py - Pipeline runner
main.py - Multi-channel manager
modules/multi_channel.py
Content generation
- Trend discovery
modules/trend_scraper.py - AI generation
modules/ai_engine.py - Script quality
modules/script_quality.py
Media production
- Voice generation
modules/voice_generator.py - Stock footage
modules/footage_fetcher.py - Pixabay footage
modules/pixabay_fetcher.py - Music manager
modules/music_manager.py - Video builder
modules/video_builder.py
Publishing and insights
- YouTube publishing
modules/youtube_upload.py - Performance analytics
modules/analytics_engine.py - Status dashboard
dashboard.py
Configuration
- Application settings
config/settings.py
Other components
- Reddit, Hacker News, Google Trends
- Ollama
- edge-tts
- Pexels and Pixabay APIs
- FFmpeg
- YouTube Data API
- Local analytics JSON
Connections 27
- Scheduler → Pipeline runner: runs
scheduler.py - Scheduler → Multi-channel manager: dispatches
scheduler.py - Multi-channel manager → Pipeline runner: runs per channel
modules/multi_channel.py - Pipeline runner → Trend discovery: requests trends
main.py - Trend discovery → Reddit, Hacker News, Google Trends: discovers topics
README.md - Pipeline runner → AI generation: generates content
main.py - AI generation → Ollama: generates text
README.md - Pipeline runner → Script quality: checks script
main.py - Script quality → AI generation: requests revisions
modules/script_quality.py - Pipeline runner → Voice generation: generates voiceover
README.md - Voice generation → edge-tts: synthesizes speech
README.md - Pipeline runner → Stock footage: requests footage
README.md - Stock footage → Pexels and Pixabay APIs: downloads clips
README.md - Stock footage → Pixabay footage: uses backup source
modules/footage_fetcher.py - Pipeline runner → Music manager: selects music
README.md - Music manager → Pexels and Pixabay APIs: downloads tracks
modules/music_manager.py - Pipeline runner → Video builder: builds video
README.md - Video builder → FFmpeg: renders media
README.md - Pipeline runner → YouTube publishing: uploads video
main.py - YouTube publishing → YouTube Data API: publishes video
README.md - Pipeline runner → Performance analytics: records upload
main.py - Performance analytics → Local analytics JSON: reads and writes
modules/analytics_engine.py - Performance analytics → YouTube publishing: fetches statistics
modules/analytics_engine.py - Performance analytics → AI generation: generates feedback
modules/analytics_engine.py - Status dashboard → Performance analytics: shows summary
dashboard.py - Pipeline runner → Application settings: reads configuration
main.py - Multi-channel manager → Application settings: uses channel settings
modules/multi_channel.py