Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Search WikipediaAPI调用不区分大小写_Search_Wikipedia_Case Insensitive_Wikipedia Api_Mediawiki Api - Fatal编程技术网

Search WikipediaAPI调用不区分大小写

Search WikipediaAPI调用不区分大小写,search,wikipedia,case-insensitive,wikipedia-api,mediawiki-api,Search,Wikipedia,Case Insensitive,Wikipedia Api,Mediawiki Api,我正在尝试将大小写不敏感添加到我的WikipediaAPI调用中。维基百科在命名页面时区分大小写。所以,http://en.wikipedia.org/wiki/Cat将产生一个关于动物的页面,http://en.wikipedia.org/wiki/CAT将生成消歧页面,http://en.wikipedia.org/wiki/CAt将生成页面不存在的通知 我目前的问题是,我想用API像维基百科一样返回页面。我目前正在Python中使用以下API调用: "http://en.wikipedia

我正在尝试将大小写不敏感添加到我的WikipediaAPI调用中。维基百科在命名页面时区分大小写。所以,
http://en.wikipedia.org/wiki/Cat
将产生一个关于动物的页面,
http://en.wikipedia.org/wiki/CAT
将生成消歧页面,
http://en.wikipedia.org/wiki/CAt
将生成页面不存在的通知

我目前的问题是,我想用API像维基百科一样返回页面。我目前正在Python中使用以下API调用:

"http://en.wikipedia.org/w/index.php?title=" + topic + "&action=render"
当使用GUI的搜索框在维基百科上搜索时,“猫”和“猫”将返回关于该动物的页面,而“猫”和“猫”将返回消歧页面


如何通过API复制此行为?

不区分大小写的搜索是通过。

区分大小写,还是不区分大小写?行动组要求的是敏感的。不,他们不是。在任何情况下,搜索框都在内部使用OpenSearchAPI。