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.
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.
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
- praw is Python Reddit API Wrapper. This will be the main and only package to connect to Reddit’s API and extract desired data.
- python-opencv is used for image transformations and computer vision problems.
- pytesseract is a python wrapper for Google’s Tesseract-OCR.
- Pillow is the Python Imaging Library by Fredrik Lundh and Contributors.
- tqdm is used for fancy progress bars.
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.
sudo apt-get install tesseract-ocr
sudo apt-get install tesseract-ocr-eng
sudo pacman -S tesseract
sudo pacman -S tesseract-data-eng
brew install tesseract
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.
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.
The code is heavily commented and all the important modules are being separated into different files. Looks pretty, dunno.
- praw is Python Reddit API Wrapper. This will be the main and only package to connect to Reddit’s API and extract desired data.
- python-opencv is used for image transformations and computer vision problems.
- pytesseract is a python wrapper for Google’s Tesseract-OCR.
- tqdm is used for fancy progress bars.
- Pillow is the Python Imaging Library by Fredrik Lundh and Contributors.
- Sagindyk Urazayev - Initial work - thecsw
- farhank3389 - Fixes - farhank3389
This project is licensed under the The GNU General Public License (see the LICENSE.md file for details), it explains everything pretty well.