0

如何从特定页面开始搜索 mediawiki api 中的一个或多个单词?

我试过 api.php?action=query&format=xml&titles=Feature_doc&list=search&srsearch=manage

但它从所有页面而不是“Feature doc”页面开始搜索。

请帮忙。

4

1 回答 1

0

I don't think you can do that easily. You would need to get the text of all pages linked from your page using a query like:

api.php?action=query&titles=Feature_doc&generator=links&prop=revisions&rvprop=content

And then manually search the contents for the string.

于 2013-03-04T22:00:48.253 回答