维基百科的opensearch API不再返回摘要信息

以下是API文档(https://www.mediawiki.org/wiki/API%3aOpensearch#Example)的示例输出:

[
    "Hampi",[
        "Hampi","Hampi (town)","Hampi Express",...
    ],[
        "Hampi,also referred to as the Group of Monuments at Hampi,is a UnesCO World Heritage Site located in east-central Karnataka,India.","Hampi  is a town in Hospet taluk of the Ballari district in the Indian state of Karnataka. Located along the Tungabhadra River in the east and center part of the state,near the border of Andhra Pradesh,Hampi is near the city of Hosapete.","The Hampi Express is a daily express train running between the Mysooru and Hubballi Junction,the headquarters of the South Western Railway in India.",[
        "https://en.wikipedia.org/wiki/Hampi","https://en.wikipedia.org/wiki/Hampi_(town)","https://en.wikipedia.org/wiki/Hampi_Express",...
    ]
]

在过去一周左右的时间内,相同的API调用返回除数组项#2中的摘要/描述字符串(“汉皮,也称为...”)之外的所有内容:

https://en.wikipedia.org/w/api.php?action=opensearch&search=Hampi&limit=3&namespace=0&format=jsonfm

[
    "Hampi","Hampi Express"
    ],[
        "","",""
    ],"https://en.wikipedia.org/wiki/Hampi_Express"
    ]
]

Wikpedia的API最近更改了吗?

i569546235 回答:维基百科的opensearch API不再返回摘要信息

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2842704.html

大家都在问