On 7/10/13 2:46 AM, Nicolas Vervelle wrote:
Good,

Thanks to Eran answer, I know how to determine for all links in a page
which one are to a disambiguation page.
For WPCleaner, I also need to be able to retrieve the complete list of
disambiguation pages through the API.
I looked at the allpages request [1], but I didn't see a way to get only
pages with this property set.
Is there an other way ?

Disambiguator implements an API for retrieving all disambiguation pages:
api.php?action=query&list=querypage&qppage=DisambiguationPages
Unfortunately, since the WMF wikis run in MiserMode, this API will only return a maximum of 1000-5000 results (depending on what wiki you're on). I'm going to do some profiling/optimization on the query though and see if it would be possible to remove the 'expensive' designation, which would allow retrieving all the disambiguation pages.

Ryan Kaldari

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to