You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When listening for comments on /r/all, CommentStream appears to drop a significant number of comments when compared to comment streams created by accessing the Reddit API via other means. I created two simple scripts, one in Node.js utilizing Snoostorm, and one in Python using the very popular PRAW module. Both scripts listened for comments on /r/all and printed comment IDs to a file.
The results from PRAW surfaced a very large number of comments that were not present in the results from the script utilizing Snoostorm.
Explicitly specifying a limit of 100 via CommentStream(r, { subreddit: "all", limit: 100, pollTime: 2000,}) appears to return a number of comments similar to the number of comments returned when using other methods.
This is mostly a remnant from the old API limits. The new API limits (when connected via Oath2) support up to 60 requests per minute, and each comment returned counted as a ratelimit (if I'm remembering correctly, I wrote that code years ago). Therefore, Snoostorm is designed to have up to 2 simultaneous streams running without issue.
However, because the API ratelimit has changed, it makes sense to up the default. This should be updated in the next patch version.
When listening for comments on /r/all,
CommentStream
appears to drop a significant number of comments when compared to comment streams created by accessing the Reddit API via other means. I created two simple scripts, one in Node.js utilizing Snoostorm, and one in Python using the very popular PRAW module. Both scripts listened for comments on /r/all and printed comment IDs to a file.The results from PRAW surfaced a very large number of comments that were not present in the results from the script utilizing Snoostorm.
The text was updated successfully, but these errors were encountered: