Page MenuHomePhabricator

prop=links not include "redlink" (non-existant) pages
Closed, DeclinedPublic

Description

http://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Feature_requests#Listbuilder:_links_on_pages_excluding_red_links

User is requesting a way to build a list of links on page (so api prop=links), to only include "bluelinks"/not include "redlinks"

I suppose this is doable, but for AWB to do it, it would require various page loads (bad!). It would be doable easier via API, as it would be able to look up all titles in the database to see if pages exist...?

Is this feasible, or would it potentially be too much of a database hog?

Thanks


Version: 1.13.x
Severity: enhancement

Details

Reference
bz15996

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:19 PM
bzimport set Reference to bz15996.

Bryan.TongMinh wrote:

Use "links" as generator and check the "missing" attribute on prop=info.

http://en.wikipedia.org/w/api.php?action=query&generator=links&titles=Main%20Page&prop=info

<page ns="0" title="Not Really a WMF Page?" missing="" />

That'll do me - Cant reuse our code so simply to use the extra atrribute (we usually just pick off namespace and page), but thats doable

Easy enough to check if the missing="" is there

Thanks Bryan!

That saves a bit of un-needed information :)