![]() Well, the kiwix wiki provides a list of content. Well that sounds perfect, where can I get the Stack Overflow one. The format allows for the compression of articles, features a full-text search index and native category and image handling similar to MediaWiki, and the entire file is easily indexable and readable using a program like Kiwix – unlike native Wikipedia XML database dumps. Its primary focus is the contents of Wikipedia and other Wikimedia projects. The ZIM file format is an open file format that stores wiki content for offline usage. ZIM files ZIM stands for "Zeno IMproved", as it replaces the earlier Zeno file format. quite big and while I probably would have the space it's really stupid especially considering the second option ![]() So how do I download Stack Overflow locally on my NAS? The noobie approach would be to just scrape every question and re-host the site statically, the issue is that Stack Overflow is well. When it's 15min of downtime that's OK I deal with it, and I even then, I'll probably not notice, but when it's 2 hours in the middle of a project it's quite annoying. Mwoffliner -mwUrl= -verbose -redis=redis://127.0.0.1:6379 -mwWikiPath=/ -mwApiPath=api.When writing software, there is always something that's the dev worst nightmare, be it a mix-match of tab and space in python, a missing semicolon in c, you get the point.īut the most scary thing is when you can't steal code search for help The MediaWiki folder containing your wiki is in /var//var/www/html/YourWiki).LocalSettings.php's $wgServer = "" (check the IP address of the OS with ifconfig).VirtualBox attributed the IP address 192.168.56.5 to the guest OS (see instructions under section VirtualBox - Access VirtualBox Guest from host OS above) (check the IP address of the OS with ifconfig).Verify that "Configure Adapter Manually" is selected and,.Click Create (upper left corner of the window).VirtualBox - Access VirtualBox Guest from host OS $ sudo apt remove libzim-dev #removes libzim 2.0.0Ģ- Install libzim version >=4.0.0 $ sudo apt install cython3 liblzma-dev libgumbo-dev libicu-dev libmagic-dev libxapian-dev python-dev python-pip python-virtualenv zlib1g-dev ( libzim installation instructions source)ġ- If libzim 2.0.0 (libzim-dev) is already installed, then proceed with uninstalling it, else continue with point 2.Libzim-dev: manual upgrade from version 2.0.0 to version >=4.0.0 Image Processing & Redis & git & meson & gcc & g++ & pkg-config installation $ sudo apt install jpegoptim advancecomp gifsicle pngquant imagemagick redis-server git meson g++ pkg-config libzim-dev $ curl -o- | bash & source ~/.bashrc & nvm install stable & node -version Note that the main instructions come from mwoffliner branch of openZIM on GitHub, therefore most of the credit of these instructions goes to them. Please find here below step-by-step instructions on what I did. After much struggle, I managed to make mwoffliner work but not without the precious help of the developers on GitHub. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |