This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我可以使用下面的代码获得某一天的热门帖子。有什么办法可以将其更改为有史以来的热门帖子吗?
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)