I'm in the process of starting my bachelor project and needs a documentation system. Currently it looks like MediaWiki fulfills my requirements. All pages of a particular MediaWiki-project is stored in a separate database system. Does it exist an easy way for extracting these pages to a HTML-hierarchy of files? Will it be easier to go for e.g. DokuWiki that doesn't support database functionality?


2 Answers 2


Perhaps the DumpHTML Extension does what you're looking for? This tool should dump your entire wiki as HTML.


I recently had the task to export a small MediaWiki to HTML.

I wrote a script in Python.

It is not perfect, but covers links between the pages even with anchors and links to non-existing pages, images, thumbnails, and even supports authentication for dumping a protected wiki.

You can find it here, under MIT license: https://github.com/SolidCharity/exportMediaWiki2HTML

  • Hi there, trying it, but have run into the following error: PS C:\exportMediaWiki2HTML> ./exportMediaWiki2Html.py beijer.uk/index.html Traceback (most recent call last): File "C:\exportMediaWiki2HTML\exportMediaWiki2Html.py", line 8, in <module> from urllib import parse ImportError: cannot import name parse ---- Any idea what I'm doing wrong? I have like zero knowledge of Python, btw. Can barely manage AutoHotkey ;-) Jan 7, 2021 at 16:39
  • @MichaelJ.W.Beijer Good point, I have now added instructions for installing the requirements: github.com/SolidCharity/exportMediaWiki2HTML#install I am not so sure how Python works on Windows, I have always run Python on Linux. Make sure you are using Python3, and you run pip install requests By the way, the parameter should not be the url to an html file, but the url of your MediaWiki instance, wg. https://mywiki.example.org Jan 8, 2021 at 17:59
  • 1
    Brilliant. Exactly what I needed! Have my upvote! Should be the accept answer to date!
    – Ray Oei
    Sep 26, 2022 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.