Code Monkey home page Code Monkey logo

memebot's Introduction

MemeBot ๐Ÿค–

A Python script that collects memes from Reddit and compiles them into a video. This bot uses an unofficial Reddit API (https://github.com/R3l3ntl3ss/Meme_Api/) and get a random meme from Reddit and use moviepy (https://github.com/Zulko/moviepy) to make the video. Then these videos are automatically uploaded to Youtube. The bot also sends status update and link of the uploaded video to a telegram chat.

Example

An example of the output is given in the output.mp4 file, and can also be found on Youtube. (https://www.youtube.com/watch?v=K3wpiGGY5og) This is basically a compilation of memes that the bot scrapes from Reddit and compile into a video.

Requirements

The modules used in this project are:

  • moviepy
  • PIL
  • requests
  • telegram
  • Youtube Data API v3

You have to install all these libraries to run this project.

Running the Script

First, install all the modules and Python 3.7+ in order to run the script, then create two folders by name processVids and processed in the home directory, then just type python process.py

The script will automatically start running and scrape memes from Reddit then moviepy will curate the video file and you will get the output as output.mp4 in the home directory.

Customization

  • You can change subreddits by changing the subreddits list in process.py , currently the subreddits are: ["memes","dankmemes","cursedcomments","me_irl","HistoryMemes","BlackPeopleTwitter","ihadastroke","technicallythetruth"]
  • Add Your Telegram API key and chat ID to the notifBot.py file
  • Go to Google Cloud Platform and generate a config.json file for the Youtube Data API v3 and add it to the src folder

Feel free to ask questions by raising an issue.

Contribution

Contributions are most welcome!

memebot's People

Contributors

sakkshm avatar

Watchers

 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.