Java中是否有用于访问维基百科数据的API [英] Is there any API in Java to access wikipedia data
问题描述
我想知道:有没有API或查询界面我可以通过它访问维基百科数据?
I want to know: is there any API or a query interface through which I can access Wikipedia data?
推荐答案
< a href =http://www.mediawiki.org/ =noreferrer> Mediawiki ,维基百科使用的维基平台确实有基于HTTP的API。请参阅 MediaWiki API 。
Mediawiki, the wiki platform that wikipedia uses does have an HTTP based API. See MediaWiki API.
例如,要获取标题为stackoverflow的页面,请调用
For example, to get pages with the title stackoverflow, you call
http://en.wikipedia.org/w/api.php? action = query& titles = Stackoverflow
API周围有一些(不完整的)Java包装器 - 请参阅API页面的客户端代码 - Java 部分以获取更多详细信息。
There are some (incomplete) Java wrappers around the API - see the Client Code - Java section of the API page for more detail.
这篇关于Java中是否有用于访问维基百科数据的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!