On Wed, 10 Jul 2013 10:49:27 -0700, Ryan Kaldari <rkaldari(a)wikimedia.org>
wrote:
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
Wasn't the expensive designation due to the use of multiple templatelinks
in the query? Now that page_props are being used instead the expensive bit
might go away.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [