This can be done by periodically scraping a subreddit. I have a working script that can do this for a subreddit that I follow. There's a few more things that I need to do before I can open source it
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments