API按日期来获得维基百科版本ID [英] API to get Wikipedia revision id by date

查看:152
本文介绍了API按日期来获得维基百科版本ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有API按日期来获得维基百科修订ID,而不是检查所有的修订历史记录,并在该日期之前解压出来的最新版本?

Is there any API to get wikipedia revision id by date, instead of checking all the revision history and extract out the most recent revision before that date?

感谢您!

推荐答案

借助修订查询API 允许你传递时间戳从一个指定的时间间隔只得到修订。使用

The revision query api allows you to pass timestamps to get only revisions from a specified interval. Use

api.php?action=query&prop=revisions&rvlimit=1&rvstart= myTimestamp

查看手册:WfTimestamp 获得公认的格式 - YYYYMMDDHHMMSS 始终有效。

Check out the Manual:WfTimestamp for accepted formats - yyyymmddhhmmss always works.

这篇关于API按日期来获得维基百科版本ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆