我将如何在 JSON 中获取 subreddit的新帖子?只需将 .json 附加到 url (http://www.reddit.com/r/SOME_SUBREDDIT/new.json) 就会返回以下内容:
{
kind: "Listing"
-
data: {
modhash: ""
children: [ ]
after: null
before: null
}
}
children 数组不包含任何帖子。我发现http://www.reddit.com/r/SOME_SUBREDDIT/new实际上路由到new?sort=rising当我需要的是new?sort=new。
和/new?sort=new.json当然不会工作。