MediaWiki:How To/All Pages

From McGough's Recipes
Revision as of 10:07, 5 May 2024 by Michael (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

All Pages

https://recipes.mcgoughm.com/w/api.php?action=query&format=json&prop=info&list=&generator=allpages&formatversion=2&inprop=url&gaplimit=1000
{
	"action": "query",
	"format": "json",
	"prop": "info",
	"list": "",
	"generator": "allpages",
	"formatversion": "2",
	"inprop": "url",
	"gaplimit": "1000"
 }

notepad++ regex filters to isolate the URL's.

Regex Filter Description
^((?!fullurl).)*$ Remove all attributes except the fullurl attribute
^(.*?)\": " Remove the leading formatting before the URL's
", Remove the trailing characters after the URL's
^(?:[\t ]*(?:\r?\n|\r))+ Remove the blank lines | This can also be done using
Notepad++'s built in Remove Empty Lines function