4
edits
Julianharty (talk | contribs) (→Zimbalaka: I've incorporated the notes from the original author which I found on archive.org. I've provided a link to the archived page too.) |
(added Zimit and wget-2zim to the "User" section) |
||
(16 intermediate revisions by 4 users not shown) | |||
Line 28: | Line 28: | ||
=== Create a ZIM file from existing HTML contents === | === Create a ZIM file from existing HTML contents === | ||
See | See [[Zimwriterfs instructions]] for an overview and read the section below on zimwriterfs for some additional context. | ||
=== wget-2-zim === | |||
[https://github.com/ballerburg9005/wget-2-zim wget-2-zim] is a simple bash script with some nifty tricks that can be used to archive websites on the internet. | |||
=== Zimit === | |||
[https://github.com/openzim/zimit Zimit] ([https://youzim.it online version]) is a scraper allowing to create ZIM file from any website. ''As of 2022 the ZIM files it produces are incompatible with kiwix-desktop, because the Web ARChive implementation it uses require ServiceWorkers (only kiwix-android, kiwix-serve).'' | |||
== Developers == | == Developers == | ||
Line 35: | Line 41: | ||
=== MWoffliner === | === MWoffliner === | ||
MWoffliner is a tool which allows to "dump" a Wikimedia project (Wikipedia, Wiktionary, ...) to a local storage. It should also work for any Mediawiki instance | MWoffliner is a tool which allows to "dump" a Wikimedia project (Wikipedia, Wiktionary, ...) to a local storage. It should also work for any [https://mediawiki.org Mediawiki] instance. It goes through all articles (or a selection if specified) of the project and write HTML/pictures to your local filesystem as plain HTML/JS/CSS/... files or in a ZIM file. | ||
It is distributed via [https://www.npmjs.com/package/mwoffliner npm] and [https://hub.docker.com/r/openzim/mwoffliner Docker]. | |||
If you are a developer, you can download it directly from its [https://github.com/openzim/mwoffliner git repository]. | |||
=== zimwriterfs === | === zimwriterfs === | ||
zimwriterfs is a console tool to create ZIM files from a localy stored directory containing a "self-sufficient" HTML content (with pictures, javascript, stylesheets). The result will contain all the files of the local directory compressed and merged in the ZIM file. Nothing more, nothing less. For now, zimwriterfs only works on POSIX compatible systems. You simply need to compile it and run it. The software does not need a lot of resources, but if you create a pretty big ZIM files, then it could take a while to complete. | zimwriterfs is a console tool to create ZIM files from a localy stored directory containing a "self-sufficient" HTML content (with pictures, javascript, stylesheets). The result will contain all the files of the local directory compressed and merged in the ZIM file. Nothing more, nothing less. For now, zimwriterfs only works on POSIX compatible systems. You simply need to compile it and run it. The software does not need a lot of resources, but if you create a pretty big ZIM files, then it could take a while to complete. | ||
Instructions on how to prepare and use zimwriterfs are here [[zimwriterfs_instructions]] | Instructions on how to prepare and use zimwriterfs are here [[zimwriterfs_instructions]] | ||
[https://github.com | [https://github.com/openzim/zimwriterfs Go to zimwriterfs source code repository]. | ||
A virtual machine with zimwriterfs is provided [http://download.kiwix.org/dev/ZIMmaker.ova here]. | A virtual machine with zimwriterfs is provided [http://download.kiwix.org/dev/ZIMmaker.ova here]. | ||
Line 77: | Line 83: | ||
[[Wiki2html]] can be used to prepare static HTML files from a running Mediawiki instance. | [[Wiki2html]] can be used to prepare static HTML files from a running Mediawiki instance. | ||
===[https://github.com/ | ===zimmer=== | ||
The [https://github.com/vss-devel/zimmer zimmer] package allows creating a ZIM dump from a Mediawiki-based wiki. This package is relatively easy to install and supports both old and new versions of Mediawiki. It is a kind of an alternative to MWoffliner. | |||
The package consists of two Node.js scripts: | |||
* ''wikizimmer.js'' -- creates static HTML files from the wiki's articles. It requires public access both to the normal web interface and to the wiki's API interface. Unlike mwoffliner, this script does not require Redis | |||
* ''zimmer.js'' -- creates a ZIM file from the static HTML files (without requiring the libzim). | |||
== See also == | == See also == | ||
* [[Bindings]] | * [[Bindings]] | ||
* [[ | * [[Readers]] |
edits