1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-29 06:50:50 +00:00
gnosygnu_xowa/res/bin/any/python/mwad
2018-11-02 09:58:55 -04:00
..
LICENSE Res: Add resources from xowa_app_windows_64_v4.5.26.1810 2018-11-02 09:58:55 -04:00
mediawiki_api_dump.py Res: Add resources from xowa_app_windows_64_v4.5.26.1810 2018-11-02 09:58:55 -04:00
README.md Res: Add resources from xowa_app_windows_64_v4.5.26.1810 2018-11-02 09:58:55 -04:00

mwad - mediawiki api

This is a script for creating xml-dumps via the mediawiki api. It is still in early development, feel free to a new issue.

Importing to @gnosygnu's offline wikipedia-reader XOWA works fine..

Installation

No additional packages are required at the moment :)


Run

usage: mediawiki_api_dump.py [-h] [-v] [-n NAME] [-l LOG] [-c] [-x] url

Create a wiki xml-dump via api.php

positional arguments:
  url                   download url

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose level... repeat up to three times
  -n NAME, --name NAME  name of the wiki for filename etc.
  -l LOG, --log LOG     specify log-file.
  -c, --compress        compress output file with bz2
  -x, --xowa            special XOWA mode: xml to stdout, progress to stderr

Example:

./mediawiki_api_dump.py http://wiki.archlinux.org