我想用praw获得一个subreddit中所有时间的顶级帖子列表

时间:2013-08-27 15:41:05

标签: python reddit

我可以使用下面的代码获取某一天的热门帖子。我有什么方法可以将其改为有史以来的顶级帖子吗?

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)

1 个答案:

答案 0 :(得分:6)

来自documentation,看起来像get_top_from_all()

相关问题