Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
streaming all comments without missing any
Post Flair (click to view more posts with a particular flair)
Post Body

I have a bot that subscribes to (streams) all comments in a single subreddit. Occasionally the bot may die and restart due to an error or the host has to reboot. How do I make sure when the bot starts up it doesn't miss any comments. Let's take a worst case example the bot crashes and doesn't get restarted for over a day.

I am using PRAW. Using subreddit.stream.comments() I get some unclear number of existing comments, then new comments as they come in. I can remember the last comment ID I saw, but how do I ensure that I start at the one I left off on, ie: start at a specific date-time or comment ID, or make sure the overlap is big enough that I didn't miss any.

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
239,910
Link Karma
1,806
Comment Karma
237,231
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago