MediaWiki:How To/All Pages
From McGough's Recipes
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 |