** This bot has been decomissioned **
This bot is more of a learning exercise than anything else, no harm intended.
It works by using phantom.js and selenium to grab a screenshot of the whole page and mark some points for reference. The next step is to crop just the article out of the page by using pillow, and then save it as a jpg to save bandwidth. Once it has done that it can post a comment on the reddit post with a link to the image.
Needs all this installed to work:
- praw - get reddit posts and comment on them
- selenium - get screenshot through phantom.js
- pillow - crop screenshot to just the article
- libjpeg8 - allows pillow to save as jpeg
- phantom.js - renders the screenshot
I am aware the code is not in good shape, I keep just patching it manually to keep up with new image hosts, it is just intended to be a fun script, not a work of art!
I have been banned from: