我正试图通过以下查询获得维基百科页面的重定向:
https://en.wikipedia.org/w/api.php?action=query&generator=搜索&format=json&gsrsearch=iiroc&gsrlimit=10&prop=pageprops|描述|重定向&重定向
正如你所看到的;加拿大投资行业监管组织;没有重定向:
"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";不包括在"的重定向中;投资_行业_监管_组织_加拿大"?
谢谢
您应该继续您的道具查询,直到批处理完成。
我继续查询,直到https://en.wikipedia.org/w/api.php?action=query&format=json&prop=pageprops%7描述%7重定向&continue=%7%C%7%pageprops%7%description&generator=搜索&重定向=1&rdcontinue=Financial_advisor%7C552889338&gsrsearch=iiroc&gsrlimit=10
"18847030": {
"pageid": 18847030,
"ns": 0,
"title": "Investment Industry Regulatory Organization of Canada",
"index": 1,
"redirects": [
{
"pageid": 18855542,
"ns": 0,
"title": "IIROC"
},
{
"pageid": 18936209,
"ns": 0,
"title": "Investment Dealers Assocation of Canada"
},
{
"pageid": 18936308,
"ns": 0,
"title": "Investment Dealers Assocation"
},
{
"pageid": 18936769,
"ns": 0,
"title": "Investment Dealers Association of Canada"
}
]
},