开发者

How can I do a wikimedia wildcard image 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜