2017-04-08 35 views
0

我试图让使用API​​摘要页面内容如下:GER维基百科页面内容与简介使用API​​

https://ar.wikipedia.org/w/api.php?action=query&format=xml&titles=pageTitle&redirects&prop=pageprops|categories|extracts&exintro=|revisions&rvprop=size|user|content&cllimit=500 

提取& exintro =:在Introcution科 修订:内容 然而,这查询不会返回“简介”部分并引发以下错误: Unrecognized parameter: rvprop

回答

2

我想你误解了如何将prop=extracts&exintro=添加到你现有的查询。您不能只在现有的prop=值的中间添加&exintro=,它必须分开:

https://ar.wikipedia.org/w/api.php?action=query&format=xml&titles=pageTitle&redirects&prop=pageprops|categories|extracts|revisions&exintro=&rvprop=size|user|content&cllimit=500