Giter Club home page Giter Club logo

youtube-shorts-generator's Introduction

portfolio_view

Automatic YouTube Shorts Generator and Uploader (From Trending Reddit Videos)

Background

I had the initial idea that content between platform is very transformative. A lot of Youtube content could be transformed into TikTok content, Instagram to Facebook, Reddit to YouTube, etc. So I decided to start with a slice of this idea. Reddit to Youtube. I chose to make the videos in Youtube shorts format since it's a new field on Youtube, less established, more likely to gain following.

At the same time, I wanted to work with automated video editing, EC2 and SSH, and managing code and files in more pythonic and organized way.

Usage

I designed the code so that it could be uploaded to an AWS EC2 to make this process fully automatic and in the background.

main.py is designed to do the following: Get posts from PRAW API via reddit_scraper.py → download first post that's under 3 min (shorts limit) → render video in vertical format via render.py → upload to youtube via uploadYT.py

uploadYT.py is modified sample code from Google's YouTube Data 4 API

edit config.py for desired setttings

Reddit API and YouTube Data 4 API are used. YouTube API is kind of a pain to set up; there are videos on it on YouTube (meta!). Replace client_secrets.json key with key provided by YouTube Data 4 API. Ensure that 'Manage your YouTube videos' is enabled.

Dependencies

  • httplib2
  • apiclient
  • oauth2client
  • moviepy → you will need ffmpeg with it
  • skimage → for effects in render.py (such as blur)
  • praw
  • redvid

Rights

Feel free to fork and play around with it. If you're going to use the code commercially, let me know.

youtube-shorts-generator's People

Contributors

zackmawaldi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.