Script Library/Wiki Examples
From
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
