anonymous / comment_time.py
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Reddit post/comment time statistics

View comment_time.py
1 2 3 4 5 6 7 8 9 10 11 12 13
from ReddiWrap import ReddiWrap
reddit = ReddiWrap(user_agent='Comment time statistics collector')
 
posts = reddit.get('')
num_posts = len(posts)
while num_posts <= 100:
for p in posts:
if p.num_comments > 0:
reddit.fetch_comments(p, limit=1, sort='best')
c = p.comments[0]
print (c.created_utc - p.created_utc) / 60
reddit.get_next()
num_posts += len(posts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.