THIS IS DEPRECATED; CHECK OUT VERSION 2 HERE.
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.
MoneyPrinter
requires Python 3.11 to run effectively. If you don't have Python installed, you can download it from here.
After you finished installing Python, you can install MoneyPrinter
by following the steps below:
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 EnvironmentVariables.md for more information.
.env.example
file to .env
and fill in the required valueshttp://localhost:3000
in your browserMoneyPrinter/output.mp4
To use your own music, compress all your MP3 Files into a ZIP file and upload it somewhere. Provide the link to the ZIP file in the Frontend.
It is recommended to use Services such as Filebin to upload your ZIP file. If you decide to use Filebin, provide the Frontend with the absolute path to the ZIP file by using More -> Download File, e.g. (use this Popular TT songs ZIP, not this Popular TT songs)
You can also just move your MP3 files into the Songs
folder.
Add your fonts to the fonts/
folder, and load them by specifying the font name on line 124
in Backend/video.py
.
MoneyPrinter now includes functionality to automatically upload generated videos to YouTube.
To use this feature, you need to:
client_secret.json
from the project and add it to the Backend/ directory.OAuth consent screen
and add yourself (the account of your YouTube channel) to the testers.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.
You can obtain your TikTok session ID by logging into TikTok in your browser and copying the value of the sessionid
cookie.
Make sure you set your path to the ImageMagick binary correctly in the .env
file, it should look something like this:
IMAGEMAGICK_BINARY="C:\\Program Files\\ImageMagick-7.1.0-Q16\\magick.exe"
Don't forget to use double backslashes (\\
) in the path, instead of one.
playsound
: Wheel failed to buildIf you're having trouble installing playsound
, you can try installing it using the following command:
pip install -U wheel
pip install -U playsound
If you were not able to find your solution, please ask in the discord or create a new issue, so that the community can help you.
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.
Pull Requests will not be accepted for the time-being.
See LICENSE
file for more information.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。