This repository contains tools and pipelines to research trending events on the internet, generate short videos using AI video-generation tools, and publish the resulting content to TikTok.
The primary goal is to automate the research → generation → publish workflow so creators can quickly produce timely, engaging short-form videos.
- 🎬 TikTok: https://www.tiktok.com/@americanaireacts0 — Videos created by this codebase. Follow for published clips and updates 📱🔗
- Discover and research events, topics, and sources on the internet.
- Produce or synthesize assets (images, audio, captions) using AI models and local services in
src/services. - Assemble and render short videos using the generation pipelines under
weekend_short_generationandsrc/servicestools. - Publish videos to TikTok (manual or scripted publishing depending on account/API access).
src/— core scripts: research, utilities, and small tools (e.g.research_agent.py,llm.py).src/services/— AI-generation integrations (e.g. SadTalker, Wan2.1) and helpers.weekend_short_generation/— task flows and task-specific generators used to build short videos.data/— input assets and temporary outputs (audio, images, video).pics/— static images and logos.
- Python 3.8+ recommended.
- Install dependencies:
pip install -r requirements.txtNote: Some services under src/services have additional system and GPU dependencies; consult their requirements.txt files (for example src/services/SadTalker/req.txt).
- Install Python dependencies: see
requirements.txt. - Run research agent to collect candidate topics:
python src/research_agent.py- Use the task generators under
weekend_short_generation/tasks/to build a video from researched data. Example (replace with the task you need):
python weekend_short_generation/flow.py- Review the generated video in
data/video/then publish to TikTok manually or via your publishing script.
The weekend_short_generation/flow.py pipeline expects several local services to be running before you execute the flow:
- Prefect: Start Prefect in a separate terminal so the flow orchestration is available (for example,
prefect orion startorprefect agent startdepending on your Prefect setup). - ComfyUI: Start ComfyUI (the local image-generation UI) so the generation tasks can connect to it. Follow the ComfyUI instructions for launching the local web UI.
- Ollama: Install Ollama and ensure its local API/daemon is running and accessible to the flow.
Example (illustrative) commands — adjust per your local installs and docs:
# Terminal 1: start Prefect
prefect server start
# Terminal 2: start ComfyUI (follow ComfyUI's startup instructions)
# cd /path/to/ComfyUI && python launch.py
# Ensure Ollama is installed and running (see Ollama docs for exact command)
ollama status- Keep sensitive credentials (API keys, TikTok tokens) out of the repo; use environment variables or a secrets manager.
- For reproducible results, run heavy model workloads on a machine with a capable GPU and the appropriate drivers.
- Many generation modules include their own README and model download scripts — follow those when using specific services.
Contributions are welcome. Open issues or PRs describing desired features, bug fixes, or new generation tasks.
Specify a license for your project (e.g. MIT) by adding a LICENSE file.