Reddit Shorts Generator - Generate Short-form media from UGC content from reddit or anywhere else on the internet
-
Upload videos directly to YouTube via the YouTube API
-
Automatically generate captions for your videos using Open AI Whisper
-
Videos are highly customizable and render blazingly fast with FFMPEG
-
Utilizes SQLite to avoid creating duplicate content
RSG (Reddit Shorts Generator) is designed to be modular, with extensions built in to upload to YouTube or TikTok.
Install the reddit shorts repo in the root directory of the project as shown in the file tree.
Because OpenAi’s Whisper is only compatible with Python 3.8 - 3.11 only use those versions of python.
mkdir reddit-shorts
gh repo clone gavink97/reddit-shorts-generator reddit-shorts
pip install -e reddit-shorts
├── client_secrets.json
├── cookies.txt
├── [reddit-shorts]
├── resources
│ ├── footage
│ └── music
├── tiktok-uploader
├── tiktok_tts.txt
└── youtube_tts.txt
-
TikTok Uploader is required to upload shorts to TikTok.
-
YouTube Data API is required to upload shorts to YouTube.
This package requires ffmpeg fonts-liberation
to be installed.
This repository utilizes pillow to create reddit images, so make sure to uninstall PIL if you have it installed
You will need your tiktok session id in order to use tiktok generated text to speech
For Google Chrome: open the inspector, Application tab, in the side bar under Storage click the Cookies drop down and select tiktok. Then filter for sessionid
Upload to a platform via -p
or --platform
options are: youtube
tiktok
video
(stand alone video) all
(except standalone)
Split video inputs via -s
or --split
shorts --split
Split will automatically take effect if two or more videos are inputed via --video
shorts --video path/to/video/one --video path/to/video/two
Choose a strategy for gathering content via --strategy
shorts --strategy hot
options are: hot
random
Custom title for video via -t
or --title
shorts -p youtube -t "Hello Youtube!"
only an option when uploading to a platform
If you’re feeling generous you can support this project and others I make on Ko-fi :)