Automatically import pages to mediawiki from powershell script
- November 6th, 2009
- Posted in Mediawiki . Powershell . Tutorials
- Write comment
If you are using a mediawiki for internal documentation or as a team knowledge base you might want to automate page creation from a shell. I wrote a powershell script which offers a simple function to create a new wiki page with a title, text and a category as parameters. It works with HTTP – so it should work from most of your servers without firewall problems.
Mediwiki offers a Special page where you can import pages. But this is not a webservice API or something like that – it’s an html form with an xml file upload. So you have to create a mediawiki-compliant xml file and fake an html form submission with the correct parameters (thats why I have this strange parameters in $wikiURL – without them it won’t work). Read more … Powershell Tutorial


nice!!!! Thx for that script…