Inspiration

Channels such as Comment Awards have accrued millions of subscribers just by uploading content from Reddit. One series on this channel just reads out answers from r/AskReddit. This, we thought could be automated.

What it does

Every day, you can run this program. It finds the top questions submitted on r/AskReddit from the last 24 hours. It takes comments from that question, and makes images out of it. It creates voice overs for each images, makes it into a movie, and automatically uploads it to YouTube.

How we built it

We wrote it with python. We used praw to communicate, gtts for speech, PIL for images, mutagen and Ffmpeg to deal with audio, cv2 and moviepy for video making, and the Youtube API for uploading to YouTube. We used oauth2 twice, one with YouTube, and again with Reddit.

Challenges we ran into

We both had to learn python for this. Neither of us were very familiar, but the praw library was the best solution here, and was only on python. We faced a lot of difficulty when trying to merge multiple mp3 files. We tried command line situations, but ultimately, we found a good library that with some effort, gave us a solution.

Accomplishments that we're proud of

Using so many different APIs and libraries

What we learned

We learned how to use python. We learned more about command line prompts. We learned about each of the libraries we used, and went in depth on the ones used to manage audio, especially for some features that we could not implement in time, like overlaid music.

What's next for Reddit To YouTube Bot

One feature we tried to implement, but could not finish in time, is the ability to monitor the comments of r/AskReddit and create YouTube videos on command, when a user types "!r2YTBot". Most of the code to do so is already in the project. Additionally, music should be added to each video, something we could not find how to do today.

Built With

Share this project:

Updates