Skip to main content

Make zimfile from stackexchange dump

Project description

# Sotoki

*Stack Overflow to Kiwix*

The goal of this project is to create a suite of tools to create
[zim](http://www.openzim.org) files required by
[kiwix](http://kiwix.org/) reader to make available [Stack Overflow](https://stackoverflow.com/)
offline (without access to Internet).

## Getting started

The use of btrfs as a file system is recommended (and required for stackoverflow)

Install non python dependencies:

```
sudo apt-get install jpegoptim pngquant gifsicle advancecomp python-pip python-virtualenv python-dev libxml2-dev libxslt1-dev libbz2-dev p7zip-full python-pillow gif2apng imagemagick
```


Create a virtual environment for python:

```
virtualenv --system-site-packages venv
```

Activate the virtual enviroment:

```
source venv/bin/activate
```


Install this lib:

```
pip install sotoki
```


```
sotoki <domain> <publisher> [--directory=<dir>] [--nozim] [--tag-depth=<tag_depth>] [--threads=<threads>] [--zimpath=<zimpath>] [--reset] [--reset-images] [--clean-previous] [--nofulltextindex] [--ignoreoldsite] [--nopic] [--no-userprofile]

```
You can use `sotoki -h` to have more explanation about these options


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

sotoki-0.9.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

sotoki-0.9-py2-none-any.whl (1.6 MB view details)

Uploaded Python 2

File details

Details for the file sotoki-0.9.tar.gz.

File metadata

  • Download URL: sotoki-0.9.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sotoki-0.9.tar.gz
Algorithm Hash digest
SHA256 8b74c333c3d31b5e3e23fcc166b4d2b95528157816a46677d3ef757f2bbffde2
MD5 fb005a8ad23829a93a332bbf370d2425
BLAKE2b-256 5df4a517d19d7bcf50e6d96bf296b84d0ff2aa1885a3ebbe4191f79c527f2fd1

See more details on using hashes here.

File details

Details for the file sotoki-0.9-py2-none-any.whl.

File metadata

File hashes

Hashes for sotoki-0.9-py2-none-any.whl
Algorithm Hash digest
SHA256 cd39df2dc1f322de150a5275803d810e6ec134425dbe6525460d91f7a7d8c84e
MD5 4650302ee2a97488bb7c260c8f3d931a
BLAKE2b-256 a014eaf2398a5aced57ceb05b954cfd5002bad71b8ffc3c303ad414a89d0fbd5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page