Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2013 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4672063 to your computer and use it in GitHub Desktop.
Save anonymous/4672063 to your computer and use it in GitHub Desktop.
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