videoAutoProduction
A simple program to automate production of news videos for a youtube channel written in python and bash
The code that I have written is for a specific topic, website and video. So keep that in mind if you are using it and make changes likewise.
Requirements
- ffmpeg
- moviepy
- beautifulsoup
- urlib.request
- wget
- nltk
- request
- xml.dom.minidom.parseString
- gcp's texttospeech API
Setup
Run these commands one by one to setup the program in a file structure that is required by the code to run.
cd ~
git clone https://github.com/sr1jan/videoAutoProduction
mkdir videoAuto
cd videoAuto
mkdir News scripts
mv ../videoAutoProduction/* ./scripts/
rm -rf ~/videoAutoProduction
cd scripts
Make sure you have all the requirements and also you have to tinker the code a little bit to make it work locally and for your purpose.
Things you need to do:
- Change
/home/sr1
in the codebase tohome/<yourUserName>
everywhere. - Have to get your API key from smmry.com and save it in a yaml file. Then access that key in the scrapArticles.py file.Refer the code to understand.
- Also you have to setup and configure your account on Google cloud platform and get the texttospeech API to work in your machine.
- will add more once I come across more edge cases
You can execute the program by running the autoVideo.sh
script.