开发者

How can I do a wikimedia wildcard image search?

开发者 https://www.devze.com 2023-03-10 11:27 出处:网络
Looking at the wikimedia api documentation it only talks of searching for images who\'s titles begin with the search term.I\'d like to have a more general search.

Looking at the wikimedia api documentation it only talks of searching for images who's titles begin with the search term. I'd like to have a more general search.

http://www.mediawiki.org/wiki/API:Allimages

This API document does state that you can query the images like this:

http://en.wikipedia.org/w/api.php?action=query&list=allimages&aiprop=url&format=xml&ailimit=10&aifrom=Albert

However the aifrom= parameter seems kind of limited. Is there an alternative parameter to use for开发者_如何学Go wildcard searches?


I don't think there is. You can use table indexes with wildcards at the end of words, but cannot otherwise, so such wildcard searches would lead to preformance problems on sites the size of Wikipedia.

0

精彩评论

暂无评论...
验证码 换一张
取 消