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
Download the last [stackexchange dump](https://archive.org/details/stackexchange)
using BitTorrent (only "superuser.com.7z" is necessary) and put it in the Sotoki
source code root.
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
```
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
```
Copy your stackexchange site dump (.7z file, for example `superuser.com.7z`) and `unzip` it to `work/dump/`:
```
mkdir -p work/dump/
cp superuser.com.7z work/dump/
cd work/dump
7z e superuser.com.7z
rename 'y/A-Z/a-z/' *
```
Go back at the sotoki root and run the pipeline:
```
sotokirun [url of stackechange website] [publisher] [--directory (optional)] [--nozim (optional)]
```
If you want to restart sotoki after a run, you must remove work/output directory
*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
Download the last [stackexchange dump](https://archive.org/details/stackexchange)
using BitTorrent (only "superuser.com.7z" is necessary) and put it in the Sotoki
source code root.
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
```
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
```
Copy your stackexchange site dump (.7z file, for example `superuser.com.7z`) and `unzip` it to `work/dump/`:
```
mkdir -p work/dump/
cp superuser.com.7z work/dump/
cd work/dump
7z e superuser.com.7z
rename 'y/A-Z/a-z/' *
```
Go back at the sotoki root and run the pipeline:
```
sotokirun [url of stackechange website] [publisher] [--directory (optional)] [--nozim (optional)]
```
If you want to restart sotoki after a run, you must remove work/output directory
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
sotoki-0.1.1-py2-none-any.whl
(378.0 kB
view details)
File details
Details for the file sotoki-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: sotoki-0.1.1-py2-none-any.whl
- Upload date:
- Size: 378.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a640ecf1fa1bf72d8d82777cb94e13d13306994710022f78fb30a767597c09a |
|
MD5 | 17a6c63b807d4d8e3bc2b5ddc990764a |
|
BLAKE2b-256 | d5dba4625ebad42cd609ed6a2a3dd92fe0bfec0275f9c4bb7adebe50ff8ee85f |