Question

I can get the top posts for a certain day using the code below. Is there any way I can change this to the top posts of all time instead?

import praw

user_agent = "Comment Reader 1.0 by /u/crowbell"

r = praw.Reddit(user_agent=user_agent)

submissions = r.get_subreddit('askreddit').get_top(limit=5)
for x in submissions:
    print str(x)
Was it helpful?

Solution

From the documentation, looks like get_top_from_all()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top