This Python script generates a video from top comments on a Reddit thread and overlays subtitles using MoviePy library.
moviepy(install withpip install moviepy)requestspyttsx3nltk
Make sure to have these Python libraries installed before running the script.
-
Clone the repository or download the script files.
-
Ensure all dependencies are installed (
moviepy,requests,pyttsx3,nltk). -
Place a background video in the
background/directory namedbackground_video.mp4. -
Change the
REDDIT_URLvariable in the script to the desired Reddit thread URL. -
Change the
USERNAMEvariable in the script to what text you want in the header image username spot. -
Place an image in this directory named
icon.pngof what image you want in the header image profile picture spot. -
Run the script using Python 3:
python main.py
This project is licensed under the MIT License. See the LICENSE file for details.
The tiktokvoice.py script is licensed under the MIT License and was authored by Mark Reznikov in 2024.