Help:Export Helper Script
From ENWiki
This page describes to the use of a simple Python script to assist the average Linux/OSX/Windows user in performing mass-exports from established Wikis. Typical use would be exporting the Help: pages from meta.wikimedia.org and importing them to an internal mediawiki installation.
Quick Steps
- Go to Special:Allpages and choose the desired namespace.
- Save the entire webpage as index.php.htm
- Run export_all_helper.py in the same directory as index.php.htm
- Copy and paste the scripts output into Special:Export and save the resulting XML output as Special_Export.xml
- Open your personal/internal mediawiki and login as the administrator
- Go to Special:Import (your wiki) and import Special_Export.xml
export_all_helper.py
#!/bin/env python
import re
content = open('index.php.htm').read()
findSpecialPages = re.compile('title="(\w.*?)"').findall
print '\n'.join(findSpecialPages(content))














