访问旧的 reddit 帖子
Accessing Old reddit posts
我使用 php 脚本将 reddit 文章的一组数据属性抓取到 csv 中,抓取这些 post 之后我需要在接下来的 24 小时内每小时监控每篇文章的状态.我有属性标题、ID、名称、评论数和域,但我目前无法找到仅使用这些属性访问 each/corresponding reddit post 的方法。
任何人都可以告诉我使用其列中的任何数据访问此 csv 中每个 reddit post 的方法吗?
id
字段在postURL中使用,像这样:92dd8
变成https://www.reddit.com/comments/92dd8
, which is equivalent to https://www.reddit.com/r/pics/comments/92dd8/test_post_please_ignore
(除了缺少subreddit样式) .
您还可以将 /api/info
与 name
字段一起使用:t3_92dd8
变为 https://www.reddit.com/api/info?id=t3_92dd8
(if you want it as JSON you can do https://www.reddit.com/api/info.json?id=t3_92dd8
, which is the intended use of /api/info
but it still works for HTML viewing). Note that /api/info
only gives information about the link, and not comments on it, but it's still useful. (Also, /api/info
can take up to 100 posts by combining them with a comma: https://www.reddit.com/api/info?id=t3_92dd8,t3_2np694
- 如果您想查询一堆 [=29],这可能很有用=]s 一次)。
我使用 php 脚本将 reddit 文章的一组数据属性抓取到 csv 中,抓取这些 post 之后我需要在接下来的 24 小时内每小时监控每篇文章的状态.我有属性标题、ID、名称、评论数和域,但我目前无法找到仅使用这些属性访问 each/corresponding reddit post 的方法。
任何人都可以告诉我使用其列中的任何数据访问此 csv 中每个 reddit post 的方法吗?
id
字段在postURL中使用,像这样:92dd8
变成https://www.reddit.com/comments/92dd8
, which is equivalent to https://www.reddit.com/r/pics/comments/92dd8/test_post_please_ignore
(除了缺少subreddit样式) .
您还可以将 /api/info
与 name
字段一起使用:t3_92dd8
变为 https://www.reddit.com/api/info?id=t3_92dd8
(if you want it as JSON you can do https://www.reddit.com/api/info.json?id=t3_92dd8
, which is the intended use of /api/info
but it still works for HTML viewing). Note that /api/info
only gives information about the link, and not comments on it, but it's still useful. (Also, /api/info
can take up to 100 posts by combining them with a comma: https://www.reddit.com/api/info?id=t3_92dd8,t3_2np694
- 如果您想查询一堆 [=29],这可能很有用=]s 一次)。