, 3 min, 402 words
Tags: mount-erie-fire hacking-around
Some background: Mount Erie Fire Department (MEFD) has an awesome handbook in mediawiki, which contains SOPs, information on equipment we carry, and other very useful information. Sometimes one might want to reference the handbook without a robust internet connection (I'm looking at you, Bowman Bay). So my goal was to come up with a way to reference a snapshot of the handbook offline.
The standard download format for full wikis in the mediawiki ecosystem is a ZIM file (.zim). You can read all about what's in a zim file and how to manipulate them on the OpenZIM wiki.
After a great deal of unproductive hacking around with manually scraping
the and using pyzim
to generate zim files (I still think that ought to be
possible, but I don't recommend it as a solution), I settled on mwoffliner to generate a zim file
for the MEFD wiki. Read all about it in its GitHub
repository. You can
install mwoffliner globally by running npm i -g mwoffliner
on a system with
npm set up.
Script to download is here. If you want the zim file without the hassle of setting up mwoffliner, you can download it at http://wxyzeph.com/mefd-latest.zim (I didn't want to version control it, and this was easier than figuring out a real solution.)
If you notice that version is a bit out of date, ping me and I can update it.
Outstanding issues: