- Apr 23, 2012
- 2,852
- 5,868
Hope y'all are having a fine Sunday.
I've recently been going hard at the Youtube game. Came across this script.
I currently have no direct use for this, but I thought some of you might find it useful.
Link to Github - https://github.com/FujiwaraChoki/MoneyPrinter
What does it do?
It uses ChatGPT, TikTok Text to Speech (unofficial API), AssemblyAI (Speech to Subtitle API) and Pexels API (Free Video) to automatically generate Youtube Shorts.
How to use it?
1. Install Python
2. In your terminal run
This will download the Github repository to your local machine.
If you're unfamiliar with that, you can download the file in Zip format, extract it and then run
2. Once in there, run
This will install all the required python libraries
3. Now open your project directory in your favorite editor and edit
You will need to enter your
Once done, run
Alright, now you should be ready. Let's run the Flask Application
And finish off by running the front end server
//
Generating a video
//
Here's a video by the author
//
This can very easily be modified to automate the video production, integrate ElevanLabs API instead of TikTok, integrate Story Blocks/Freepik/Adobe Stock etc.
I hope some of y'all find it useful.
I've recently been going hard at the Youtube game. Came across this script.
I currently have no direct use for this, but I thought some of you might find it useful.
Link to Github - https://github.com/FujiwaraChoki/MoneyPrinter
What does it do?
It uses ChatGPT, TikTok Text to Speech (unofficial API), AssemblyAI (Speech to Subtitle API) and Pexels API (Free Video) to automatically generate Youtube Shorts.
How to use it?
1. Install Python
2. In your terminal run
Code:
git clone https://github.com/FujiwaraChoki/MoneyPrinter.git
cd MoneyPrinter
This will download the Github repository to your local machine.
If you're unfamiliar with that, you can download the file in Zip format, extract it and then run
cd MoneyPrinter2. Once in there, run
Code:
pip install -r requirements.txt
This will install all the required python libraries
3. Now open your project directory in your favorite editor and edit
.env.example You will need to enter your
AssemblyAI API Key, OpenAI API key, Pexels API Key, TikTok Session ID (I'll tell you below how to get it)Once done, run
Code:
cp .env.example .env
Alright, now you should be ready. Let's run the Flask Application
Code:
cd Backend
python main.py
And finish off by running the front end server
Code:
cd ../Frontend
python -m http.server 3000
//
Generating a video
- Open http://localhost:3000 in your browser
- Enter a topic to talk about
- Click on the "Generate" button
- Wait for the video to be generated
- The video's location is
MoneyPrinter/output.mp4
- Log in to the TikTok Web App
- Install the Cookie Editor extension for your browser.
- Open the extension and look for "sessionid"
- Copy it and paste it.
//
Here's a video by the author
//
This can very easily be modified to automate the video production, integrate ElevanLabs API instead of TikTok, integrate Story Blocks/Freepik/Adobe Stock etc.
I hope some of y'all find it useful.