Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.94 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.94 KB

Waffle.io - Columns and their card count BugSnag

Apprentice Bot - Transcribers Of Reddit

This is the source code for a helper bot, making attempts at transcribing content as it is posted to the subreddit /r/TranscribersOfReddit, a community dedicated to transcribing images, audio, and video. It acts under the username "/u/transcribot".

This bot is still in training and might not be able to recognize everything it attempts. Some transcriptions might be complete trash, but the hope is that it will be a start to a more legitimate, volunteer-written transcription.

Resources

  • Redis (tracking completed posts and queue system)
  • ocr.space (OCR solution)

NOTE:

This code is not complete. The praw.ini file is required to run the bots and contains information such as the useragents and certain secrets. It is built for Python 3.6.

Installation

$ git clone https://github.com/GrafeasGroup/tor_ocr.git tor_ocr
$ cd tor_ocr/
$ pip install --process-dependency-links .

OR

$ pip install --process-dependency-links 'git+https://github.com/GrafeasGroup/tor_ocr.git@master#egg=tor_ocr-0'

High-level functionality

Monitoring daemon (via Redis queue):

  • Pull job (by post id) off of queue:
    • Get image URL
    • Use orc.space API on the image
    • If OCR successful:
      • Post OCR-ed content to post on /r/TranscribersOfReddit in 9000 character chunks, replying to previous comment when over 9000 characters

Running the Bot

$ tor-apprentice
# => [daemon mode + logging]

Contributing

See CONTRIBUTING.md for more.