Last modified: 2010-05-15 16:02:56 UTC
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
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!
(In reply to comment #1) > 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 > Actually, you don't even need prop=info: http://en.wikipedia.org/w/api.php?action=query&generator=links&titles=New_Hampshire%27s_1st_congressional_district&gplcontinue=5011204|0|Wolfeboro,%20New%20Hampshire
That saves a bit of un-needed information :)