MediaWiki:How To/All Pages: Difference between revisions

From McGough's Recipes
mNo edit summary
mNo edit summary
Line 17: Line 17:
! Regex Filter !! Description  
! Regex Filter !! Description  
|-
|-
| <nowiki>fullurl</nowiki>|| Select the full URL's from the other attributes
| <nowiki>^((?!fullurl).)*$</nowiki>|| Remove all attributes except the fullurl attribute
|-
|-
| <nowiki>^(.*?)\": "</nowiki> || Remove the leading formatting before the URL's
| <nowiki>^(.*?)\": "</nowiki> || Remove the leading formatting before the URL's

Revision as of 10:01, 5 May 2024

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