缺少来自Wikipedia API的重定向

问题描述

我试图通过此查询来获取Wikipedia页面的重定向:

https://en.wikipedia.org/w/api.php?action=query&generator=search&format=json&gsrsearch=iiroc&gsrlimit=10&prop=pageprops|description|redirects&redirects

如您所见,“加拿大投资行业监管组织”页面没有重定向:

            "18847030": {
                "pageid": 18847030,"ns": 0,"title": "Investment Industry Regulatory Organization of Canada","index": 1,"pageprops": {
                    "page_image": "Investment_Industry_Regulatory_Organization_of_Canada_Logo.jpg","wikibase_item": "Q16987312"
                },"description": "organization","descriptionsource": "central"
            }

但是,如果转到https://en.wikipedia.org/wiki/IIROC,则会重定向到https://en.wikipedia.org/wiki/Investment_Industry_Regulatory_Organization_of_Canada

那么为什么“ IIROC”未包含在“ Investment_Industry_Regulatory_Organization_of_Canada”的重定向中?

谢谢

解决方法

您应该continue your prop query until the batch is complete

通过继续查询直到https://en.wikipedia.org/w/api.php?action=query&format=json&prop=pageprops%7Cdescription%7Credirects&continue=%7C%7Cpageprops%7Cdescription&generator=search&redirects=1&rdcontinue=Financial_adviser%7C52889338&gsrsearch=iiroc&gsrlimit=10

,我获得了以下结果
{{1}}

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...