Skip to content

anonymous /comment_time.py
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Reddit post/comment time statistics
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.