DEV Community

Cover image for One Open Source Project a Day (No.42): MoneyPrinterV2 —— The Open-Source 'Money Printer' for Automated Video Creation and Monetization
WonderLab
WonderLab

Posted on

One Open Source Project a Day (No.42): MoneyPrinterV2 —— The Open-Source 'Money Printer' for Automated Video Creation and Monetization

1. Introduction

MoneyPrinterV2 (MPV2) is an ambitious open-source project often referred to as a "monetization-in-a-box" engine. A complete rewrite of the original MoneyPrinter, it leverages Python-driven automation pipelines to handle the entire content lifecycle—from topic research and scriptwriting to visual generation and multi-platform distribution—enabling the automated production of "passive income."

Unlike generic video tools, MPV2 focuses on end-to-end automation. It doesn't just generate videos; it can manage Twitter (X) accounts, scrape Amazon product data for affiliate marketing, and even crawl Google Maps for local business outreach.

2. Key Features

  • Full YouTube Shorts Pipeline: Automated niche selection → Script generation (LLM) → Voiceover (TTS) → AI Image generation → Video composition (MoviePy) → Auto-upload.
  • AI-Native Visuals: V2 eliminates the need for stock footage by using APIs like Gemini to generate 9:16 visuals in real-time. This ensures content uniqueness and helps bypass platform copyright filters.
  • Multi-Dimensional Monetization Kit:
    • Affiliate Marketing (AFM): Automatically scrapes Amazon products, generates pitches via LLMs, and posts tweets with affiliate links.
    • Local SEO & Outreach: Includes a Go-based Google Maps scraper to gather business leads and send automated cold emails via SMTP.
    • Twitter (X) Automation: Features scheduled posting and account management, putting social media presence on "autopilot."
  • Advanced Tech Integration:
    • Audio: Integrated with KittenTTS for high-quality, human-like narration.
    • Subtitles: Uses local Whisper or AssemblyAI to generate precise captions automatically.
    • Browser Automation: Uses Selenium with Firefox profiles to bypass bot detection and reuse authenticated sessions.

3. Quick Start

MPV2 requires Python 3.12 or higher.

  1. Clone the Repository:
   git clone https://github.com/FujiwaraChoki/MoneyPrinterV2.git
   cd MoneyPrinterV2
Enter fullscreen mode Exit fullscreen mode
  1. Configuration:
    • Copy the example config: cp config.example.json config.json.
    • Fill in your API keys (supports local Ollama or Gemini) and your Firefox profile path in config.json.
  2. Environment Setup:
   python -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
   pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode
  1. Execution:
    • Run python scripts/preflight_local.py to verify your environment.
    • Run the main script: python src/main.py.

4. Technical Stack

  • Language: Python 3.12+ for core logic, with Go-based high-performance scrapers.
  • LLM Support: Deeply integrated with Ollama (for local inference and reduced costs), while also supporting OpenAI and Anthropic.
  • Video Backend: Uses MoviePy for non-linear editing and ImageMagick for dynamic caption rendering.
  • Automated Distribution: Leverages Selenium to simulate human browser behavior for publishing to platforms like YouTube and TikTok.

5. Expert Perspective: Project Value

  • Industrialization of Content: MPV2 demonstrates how complex creative tasks (scripting, art, voiceover) can be decomposed into a standardized industrial pipeline.
  • Low-Cost Experimentation: By utilizing local models (Ollama) and free/cheap image APIs (Gemini), users can scale account testing with near-zero marginal cost.
  • Monetization Loop: It goes beyond "making videos" by integrating affiliate links and email outreach, completing the final step from traffic to revenue.

6. Resources


Whether you're looking to launch a 24/7 automated YouTube channel or exploring the possibilities of AI-driven monetization, MoneyPrinterV2 provides a sophisticated open-source foundation for your journey.

Top comments (0)