Skip to content

Automate Creation of YouTube Shorts using MoviePy.

License

Notifications You must be signed in to change notification settings

BrettFraley/MoneyPrinter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoneyPrinter 💸

Automate the creation of YouTube Shorts locally, simply by providing a video topic to talk about.

Important Please make sure you look through existing/closed issues before opening your own. If it's just a question, please join our discord and ask there.

🎥 Watch the video on YouTube.

Installation 📥

git clone https://github.com/FujiwaraChoki/MoneyPrinter.git
cd MoneyPrinter

# Install requirements
pip install -r requirements.txt

# Copy .env.example and fill out values
cp .env.example .env

# Run the backend server
cd Backend
python main.py

# Run the frontend server
cd ../Frontend
python -m http.server 3000

See .env.example for the required environment variables.

If you need help, open ENV.md for more information.

Usage 🛠️

  1. Copy the .env.example file to .env and fill in the required values
  2. Open https://localhost:3000 in your browser
  3. Enter a topic to talk about
  4. Click on the "Generate" button
  5. Wait for the video to be generated
  6. The video's location is temp/output.mp4

Fonts 🅰

Add your fonts to the fonts/ folder, and load them by specifying the font name on line 124 in Backend/video.py.

Automatic YouTube Uploading 🎥

MoneyPrinter now includes functionality to automatically upload generated videos to YouTube.

To use this feature, you need to:

  1. Create a project inside your Google Cloud Platform -> GCP.
  2. Obtain client_secret.json from the project and add it to the Backend/ directory.
  3. Enable the YouTube v3 API in your project -> GCP-API-Library
  4. Create an OAuth consent screen and add yourself (the account of your YouTube channel) to the testers.
  5. Enable the following scopes in the OAuth consent screen for your project:
'https://www.googleapis.com/auth/youtube'
'https://www.googleapis.com/auth/youtube.upload'
'https://www.googleapis.com/auth/youtubepartner'

After this, you can generate the videos and you will be prompted to authenticate yourself.

The authentication process creates and stores a main.py-oauth2.json file inside the Backend/ directory. Keep this file to maintain authentication, or delete it to re-authenticate (for example, with a different account).

Videos are uploaded as private by default. For a completely automated workflow, change the privacyStatus in main.py to your desired setting ("public", "private", or "unlisted").

For videos that have been locked as private due to upload via an unverified API service, you will not be able to appeal. You’ll need to re-upload the video via a verified API service or via the YouTube app/site. The unverified API service can also apply for an API audit. So make sure to verify your API, see OAuth App Verification Help Center for more information.

Donate 🎁

If you like and enjoy MoneyPrinter, and would like to donate, you can do that by clicking on the button on the right hand side of the repository. ❤️ You will have your name (and/or logo) added to this repository as a supporter as a sign of appreciation.

Contributing 🤝

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Star History 🌟

Star History Chart

License 📝

See LICENSE file for more information.

About

Automate Creation of YouTube Shorts using MoviePy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.0%
  • HTML 18.0%