Skip to content

Python Reddit bot to take snapshot of comments and upload to imgur on demand

Notifications You must be signed in to change notification settings

ouzkagan/redditsnapshotbot

Repository files navigation

redditcommentsnapshotbot

Reddit Bot that snapshot comments chain of post and uploads it to imgur.

Working logic

  1. run comments
  2. find mention or similar
  3. get parameter which represents how many comments will be included
    3.1. if there is no parameter
    -> get that much of parent comments
    stop if on top
    3.2. if there is a parameter
    ->get only 1 comment
    ?->get all comments come before that
    ?->get all comments coming after that
    ?->get all comments flood
  4. style comments (with upvotes and chain styling) - create image
  5. upload image to imgur ~ for now

To-do

  • How to reply all comments without missing??
  • Find a library to turn text to image
  • Imitate Reddit comment styles
  • Imitate Reddit (post) styles
  • Name bot to 'SnapshotBot' to make it more sense (taken)
  • Start with shotting 1 comment
  • Shot Upper chain
  • Design a signature to make it official
  • Upload image to Imgur
  • This version may cause an jumping some comments?
  • Design a reply for !Snapshot
  • Ask redditors if it's a good idea
  • Shot All chain in expanded ??
  • Shot Also Post?
  • Option names:
    • parent (get only parent) default
    • withpost/all (from parent to post all) default
    • top (get all to first comment)
    • tree (get all commented until that time)
    • number (only get n parent comments)
  • Deploy on ?Heroku

About

Python Reddit bot to take snapshot of comments and upload to imgur on demand

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published