Turn StackExchange dumps into ZIM files for offline usage
Project description
Sotoki
Sotoki
(Stack Overflow 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.
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
Docker
docker run -v my_dir:/output openzim/sotoki sotoki --help
Installation
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 # creates a virtual python environment in ./env folder
./env/bin/pip install -U pip # upgrade pip (package manager). recommended
./env/bin/pip install -U sotoki # install/upgrade sotoki inside virtualenv
# direct access to in-virtualenv sotoki binary, without shell-attachment
./env/bin/sotoki --help
# alias or link it for convenience
sudo ln -s $(pwd)/env/bin/sotoki /usr/local/bin/
# alternatively, attach virtualenv to shell
source env/bin/activate
sotoki --help
deactivate # unloads virtualenv from shell
Developers
Anybody is welcome to improve the Sotoki.
To run Sotoki 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
.
See requirements.txt
for the list of python dependencies.
Users
You don't have to make your own ZIM files of Stack Exchange's Web sites. Updated ZIM files are built on a regular basis for all of them. Look at https://library.kiwix.org/?category=stack_exchange to download them.
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.2.tar.gz
.
File metadata
- Download URL: sotoki-2.0.2.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5561d7370a8521f71ca331ce1e3dfef704941548c2da96f503685b5a9fa7059 |
|
MD5 | 6eb8e50950d8867d15ca7d75262e69c9 |
|
BLAKE2b-256 | bc456e4a6ffefb5be592be678d082a424c7766564e292f1726ed76b85398061c |
File details
Details for the file sotoki-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: sotoki-2.0.2-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7885cc4b465280a8085f1879d8952fc5da01a8863eeccd2120174c8601391ea5 |
|
MD5 | 3ed35ca26de081f7eb173d347e5da000 |
|
BLAKE2b-256 | e96f7ae1916eb7d5662860ba50410efc7710ebd3c0093188c8d7c3bd31f35a69 |