本文介绍了有没有办法让一个给定版(Subreddit),而不是仅仅的职位超过一个月更新的所有帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让一个给定版(Subreddit),而不是仅仅的职位超过一个月?

Is there a way to get all posts for a given subreddit instead of just the posts newer than one month?

例如,这是来自IAMA版(Subreddit)职位的最后页面中,我们可以得到,的,并明确这是不是最后一页的帖子。它不包括超过一个月年长的文章。

For example, this is the "last" page of posts from IAmA subreddit we can get to, http://www.reddit.com/r/IAmA/?count=900&limit=100&after=t3_1k3tm1, and clearly this is not the last page of posts. It does not include any posts older than one month.

推荐答案

与reddit的玩弄后,我发现获取给定版(Subreddit)的所有帖子的方法之一是使用它的搜索界面:的 /search.json?restrict_sr=on&t=all。例如,您可以使用此请求端点得到下IAMA版(Subreddit)所有帖子:的

After playing around with Reddit, I found one way to fetch all posts of a given subreddit is to use its search interface: http://www.reddit.com/r//search.json?restrict_sr=on&t=all. For example, you can get all posts under IAmA subreddit using this request endpoint: http://www.reddit.com/r/IAmA/search.json?restrict_sr=on&t=all

这篇关于有没有办法让一个给定版(Subreddit),而不是仅仅的职位超过一个月更新的所有帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 12:56