Make ZIM file from Kolibri Channels
Project description
kolibri2zim
kolibr2zim allows you to create a ZIM file from a Kolibri Channel.
It downloads the video (webm or mp4 extension – optionnaly
recompress them in lower-quality, smaller size), the thumbnails, the
subtitles and the authors' profile pictures ; then, it create a static
HTML files folder of it before creating a ZIM off of it.
Requirements
ffmpegfor video transcoding (only used with--use-webmor--low-quality).curlandunzipto install Javascript dependencies. Seeget_js_deps.shif you want to do it manually.
Installation
Virtualenv
kolibri2zim is a Python3 software. If you are not using the
Docker image, you are advised to use it in a
virtual environment to avoid installing software dependencies on your system.
python3 -m venv env # Create virtualenv
source env/bin/Activate # Activate the virtualenv
pip3 install kolibri2zim # Install dependencies
kolibri2zim --help # Display kolibri2zim help
Call deactivate to quit the virtual environment.
See requirements.txt for the list of python dependencies.
Docker
docker run -v my_dir:/output ghcr.io/openzim/kolibri2zim kolibri2zim --help
Usage
kolibri2zim works off a channel-id that you must provide. This is a 32-characters long ID that you can find in the URL of the channel you want, either from Kolibri Studio or the Kolibri Catalog
Development
kolibri2zim adheres to openZIM's Contribution Guidelines.
kolibri2zim has implemented openZIM's Python bootstrap, conventions and policies v1.0.0.
Before contributing be sure to check out the CONTRIBUTING.md guidelines.
To test epubs and pdfs rendering, a potential usefull command is:
kolibri2zim --name "Biblioteca Elejandria" --output /output --tmp-dir /tmp --zim-file Biblioteca_Elejandria.zim --channel-id "fed29d60e4d84a1e8dcfc781d920b40e" --node-ids 'd92c07655128458f8248416154b18a68,89fe2f86ee3f4fbaa7fb2bf9bd56d088,75f99e6b97d14b14a4e74762ad77391f,89fe2f86ee3f4fbaa7fb2bf9bd56d088'
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kolibri2zim-1.2.1.tar.gz.
File metadata
- Download URL: kolibri2zim-1.2.1.tar.gz
- Upload date:
- Size: 151.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e5b3db5fa6b75d4bd5c8313ff4f980ee7c687ffeed45b7f444caa7a8478308b
|
|
| MD5 |
0e63762eccf15ae1ae18c74176dc7a2b
|
|
| BLAKE2b-256 |
4bdffc3f02e0058da0a7b511e99be8d6182ea9440124434f90d40b6d04557175
|
File details
Details for the file kolibri2zim-1.2.1-py3-none-any.whl.
File metadata
- Download URL: kolibri2zim-1.2.1-py3-none-any.whl
- Upload date:
- Size: 143.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4340aa3db915fc4190f7a327ce435767183a82d4e2a581e49f20e9880492adf
|
|
| MD5 |
08aedc0647991946a996f866eea78671
|
|
| BLAKE2b-256 |
62be08dfac3ebfb174bf2c52cbfdf7017ef7a26dbc37229208bf5504090f8eaf
|