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.
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.
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/redditdev/c...