Reputation: 153
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)
Upvotes: 1
Views: 3736