Skip to content

thecsw/sequelmemes_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

u/sequelmemes_bot Documentation

Hello there!

Welcome to the source page of u/sequelmemes_bot! Nice to meet you. First of all, let me talk you through what the bot does and details later.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

sudo pip install praw
sudo pip install python-opencv
sudo pip install pytesseract
sudo pip install tesseract-ocr
sudo pip install Pillow
sudo pip install tqdm

OR

pip install --upgrade -r requirements.txt
  1. praw is Python Reddit API Wrapper. This will be the main and only package to connect to Reddit’s API and extract desired data.
  2. python-opencv is used for image transformations and computer vision problems.
  3. pytesseract is a python wrapper for Google’s Tesseract-OCR.
  4. Pillow is the Python Imaging Library by Fredrik Lundh and Contributors.
  5. tqdm is used for fancy progress bars.

Other Dependencies

Tesseract engine should be installed on a local machine to run the text recognition properly. We will also install the tesseract OCR trained languages for better accuracy and we will install only the English packages. For more information about other languages, please refer to tesseract’s official repository on Github.

Linux

Debian, Ubuntu (aptitude)
sudo apt-get install tesseract-ocr
sudo apt-get install tesseract-ocr-eng
Arch Linux (pacman)
sudo pacman -S tesseract
sudo pacman -S tesseract-data-eng

Mac OS (homebrew)

brew install tesseract

Installing

The only thing that needs to be done before execution is the config. The only thing that needs to be done before execution is the config profile. In the config profile you should fill your Reddit API details.

For that please follow the steps below

git clone https://github.com/thecsw/sequelmemes_bot
cd sequelmemes_bot
mv example.config.py config.py
nano config.py

After filling out the details, save and exit. You’re done with installation.

Deployment

Remove the word **’example’** from the title of all files with it.

Just run this

python main.py

That is everything. All the sequelmemes will be identified.

Source code

The code is heavily commented and all the important modules are being separated into different files. Looks pretty, dunno.

Built With

  1. praw is Python Reddit API Wrapper. This will be the main and only package to connect to Reddit’s API and extract desired data.
  2. python-opencv is used for image transformations and computer vision problems.
  3. pytesseract is a python wrapper for Google’s Tesseract-OCR.
  4. tqdm is used for fancy progress bars.
  5. Pillow is the Python Imaging Library by Fredrik Lundh and Contributors.

Authors

License

This project is licensed under the The GNU General Public License (see the LICENSE.md file for details), it explains everything pretty well.

About

u/sequelmemes_bot. Copy of u/prequelmemes_bot, don't tell anyone.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages