Skip to content

Collects top posts from a subreddit (or random subreddits) and turns them into vertical videos for youtube shorts, tiktok, etc

License

Notifications You must be signed in to change notification settings

AlfieRan/reddit-video-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Needs Doing

  • [possibly?] Connect to youtube api

Requirements

  • ffmpeg
  • python
  • moviepy
  • gtts
  • imageMagick

Setup

Either run the program once or create a directory called footage in the root of the project (the same level as the source folder).

Place an mp4 video file containing your background footage in the footage file, the program is currently setup to expect a file named "minecraft.mp4" but this can be easily changed to whatever you want by changing the FOOTAGE_PATH constant in src/main.py.

Env

You also need to create an env file in the root of the project which must contain the following values:

CLIENT_ID = [The client id of your reddit api application]
CLIENT_SECRET = [The client secret of your reddit api application]

USERNAME = [Your reddit username]
PASSWORD = [Your reddit password]

To create a reddit api application if you haven't already:

  1. navigate here: https://www.reddit.com/prefs/apps
  2. Click "create app" at the bottom of the page.
  3. Set the type to "script".
  4. Give the app a name, description and redirect url - since this is a script none of those details really matter so set them to whatever you want.
  5. Copy the code just below "personal use script" - that is your client id.
  6. Then copy the code next to "secret" - that is your client secret.

About

Collects top posts from a subreddit (or random subreddits) and turns them into vertical videos for youtube shorts, tiktok, etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published