Turn StackExchange dumps into ZIM files for offline usage
Project description
Sotoki
sotoki
(stackoverflow to kiwix) is an OpenZIM scraper to create offline versions of Stack Exchange websites such as stack overflow.
It is based on Stack Exchange's Data Dumps hosted by The Internet Archive.
⚠️ Warning
sotoki
is undergoing a major rewrite to use libzim7 and its python binding in order to bypass filesystem limitations seen in version 1.x
. Use tagged version until this warning is removed as current master is not-functionnal.
Usage
sotoki
works off a domain
that you must provide. That is the domain-name of the stackexchange website you want to scrape. Run sotoki --list-all
to get a list of those
Note: when running off the git repository, you'll need to download a few external dependencies that we pack in Python releases. Just run python src/sotoki/dependencies.py
Docker
docker run -v my_dir:/output openzim/sotoki sotoki --help
Virtualenv
sotoki
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 sotoki # Install dependencies
sotoki --help # Display kolibri2zim help
Call deactivate
to quit the virtual environment.
See requirements.txt
for the list of python dependencies.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file sotoki-2.0.1.tar.gz
.
File metadata
- Download URL: sotoki-2.0.1.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ac1884483d925ebff1c747c10beb6b89a1fc888365ae1c5ce9893c6333bdc5 |
|
MD5 | 3a84fb1a9163f6f6d201c7becf6832da |
|
BLAKE2b-256 | 7437cc8ca64fcf6ecb9a3b7c77e4cd87d4db5c13913e55a03aa745ea8515eff3 |
File details
Details for the file sotoki-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: sotoki-2.0.1-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129d478029571657162a0831cafd3d3392f00efaa6eab2eef611b0178a2c5856 |
|
MD5 | eb6b71170121303649fb927b1fbb9ddb |
|
BLAKE2b-256 | 00532cab91a91fac4baba4e0b5c30dbebf4ebbdc1c39dc8d23abdf39d7dae3d6 |