Create a gist now

Instantly share code, notes, and snippets.

anonymous /
Created Jan 30, 2013

What would you like to do?
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
num_posts += len(posts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment