theweaselking: (Work now)
[personal profile] theweaselking
I've got a python script, from here, that turnes a MediaWiki installation into a static HTML website - suitable for giving you an offline snapshot of your wiki!

However, the script, as written, uses a metric crapload of memory if your wiki is big. As in, runs OUT of memory if your wiki is too big.

The trackback is:
Traceback (most recent call last):
File "mw2html.py", line 742, in
main()
File "mw2html.py", line 738, in main
run(config)
File "mw2html.py", line 591, in run
doc = f.read()
File "/usr/lib/python2.5/socket.py", line 295, in read
return "".join(buffers)
MemoryError
Anyone know enough Python to tell me if there's a way to do it effectively in smaller chunks?
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

theweaselking: (Default)theweaselking
Page generated Feb. 5th, 2026 05:54 pm