【发布时间】:2014-06-20 12:37:43
【问题描述】:
我想从 Wikipedia 页面 http://en.wikipedia.org/wiki/2014_FIFA_World_Cup#Goalscorers 获取“Goalscorers”部分的内容。 我用了命令
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=2014_FIFA_World_Cup&rvprop=content&rvsection=32
但我得到一个空白部分:
<?xml version="1.0"?>
<api>
<query>
<normalized>
<n from="2014_FIFA_World_Cup" to="2014 FIFA World Cup" />
</normalized>
<pages>
<page pageid="656933" ns="0" title="2014 FIFA World Cup">
<revisions>
<rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">===Goalscorers===
{{2014 FIFA World Cup Goalscorers}}</rev>
</revisions>
</page>
</pages>
</query>
</api>
如何使用维基百科 API 获取本节的实际数据?
【问题讨论】:
标签: wikipedia-api