SEARCH
TOOLBOX
LANGUAGES
modified on 25 May 2010 at 16:01 ••• 1,844 views

Script Library/Wiki Examples

From

Jump to: navigation, search

backup wiki

this script will download all pages and images from the selected Wiki (note that the OWASP files are more than 2Gb)

for the next version of this script add the download of templates and categories pages


get data from wikipage

this example shows how to consume the contents from a MediaWiki page

var wikiPageTogGet = "O2_.NET_AST_Engine/Call_Graph_Script_Examples";
var wikiApi = new O2PlatformWikiAPI();
var wikiText = wikiApi.raw(wikiPageTogGet);  
var sourceElements = wikiText.htmlDocument().select("//source");
foreach(var sourceElement in sourceElements)
{
	sourceElement.attributes("title")[0].Value.info();
	"{0}".debug(sourceElement.html());   
}	
 
//include O2PlatformWikiAPi
MediaWiki Appliance - Powered by TurnKey Linux