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
[PRAW] Retrieving multiple actions from SubredditModerationStream in real time via threading
Post Flair (click to view more posts with a particular flair)
Author Summary
TheIceCreamMansBro2 is in PRAW
Post Body

I'm trying to look at bans as well as unbans in real time. The SubredditModerationStream API appears to only support one of these actions at once, as well as instances where users were both banned and unbanned. (If only it supported ORing as well as just ANDing!!) Threading the two causes it to be not real-time: when no bans or unbans have occurred in a while and then some occur, it takes forever for the script to "see" them (which is not the case when it's not threaded), and they come in out of order, causing it to miss some, since I store a "most recent action" timestamp in a file - and it has to be a file since this script can terminate at any time (if I lose connection or my laptop goes to sleep).

If anyone knows how to make this work, please help! The code is here. The link expires in one month.

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
83,739
Link Karma
382
Comment Karma
73,547
Profile updated: 1 day ago
Posts updated: 4 months ago

Subreddit

Post Details

Location
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
4 years ago