我该如何在JSON中获取subreddit的新帖子?只需将.json附加到url (http://www.reddit.com/r/SOME_SUBREDDIT/new.json)即可返回以下内容:
{
kind: "Listing"
-
data: {
modhash: ""
children: [ ]
after: null
before: null
}
}
子数组不包含任何帖子。我发现http://www.reddit.com/r/SOME_SUBREDDIT/new实际上路由到new?sort=rising,而我需要的是new?sort=new。
当然,/new?sort=new.json也不能工作。
https://stackoverflow.com/questions/6183318
复制相似问题