如何praw
在 reddit sub 中下载超过 1000 个热门标题?以下最小工作示例在 1000 处停止:
import praw
subreddit_name = "todayilearned"
user_agent = "TopHITS v0.1"
agent = praw.Reddit(user_agent=user_agent)
sub = agent.get_subreddit(subreddit_name)
submissions = sub.get_top_from_all(limit=None)
for result in submissions:
print result