Recently, I had the task to export a small MediaWiki to HTML.

There is the extension DumpHTML, but it is unmaintained: https://www.mediawiki.org/wiki/Extension%3aDumpHTML

I wrote a Python script which supports the following features:

  • links between the pages
  • links to anchors
  • links to non-existing pages
  • directly embedded images
  • thumbnails
  • supports authentication for dumping a protected wiki
  • export all (currently up to 500) pages, or export a single page

You can find the script here: https://github.com/SolidCharity/exportMediaWiki2HTML

It is licensed under MIT.

You are welcome to file issues, and Pull Requests are very welcome too!

Export MediaWiki to HTML
Tagged on: