Downloads and imports Wikipedia page histories to a git repository
Go to file
Daniel Lenski 8d8fdc27fb Update README.md 2020-12-21 15:27:24 -08:00
wp2git v2.0 2020-12-21 14:55:12 -08:00
.gitignore make into a proper distutils package, with wp2git as CLI entry point, and call it version 1.0 2016-08-05 18:31:30 -07:00
AUTHORS replace D version with Python version, based on mwclient 2014-10-14 00:44:56 -07:00
LICENSE replace D version with Python version, based on mwclient 2014-10-14 00:44:56 -07:00
README.md Update README.md 2020-12-21 15:27:24 -08:00
requirements.txt newer mwclient, fix deprecation warning 2020-12-21 14:54:50 -08:00
setup.py newer mwclient, fix deprecation warning 2020-12-21 14:54:50 -08:00
version.py make into a proper distutils package, with wp2git as CLI entry point, and call it version 1.0 2016-08-05 18:31:30 -07:00

README.md

wp2git

This program allows you to download and convert any Wikipedia article's history to a git repository, for easy browsing, annotation, and bisecting (etc.) of older revisions.

Requirements

Requires Python 3.x and git accessible in your PATH, and the mwclient package (which will be auto-installed by pip).

Quick installation

For the latest release, install with:

pip3 install https://github.com/dlenski/wp2git/archive/v2.0.zip

For the latest development build, install with

pip3 install https://github.com/dlenski/wp2git/archive/master.zip

Usage

$ wp2git [--lang XY] article_name

wp2git will create a directory, in which a new git repository will be created. The repository will contain a single file named article_name.mw, along with the entire edit history of that article on XY.wikipedia.org. (If unspecified, the default language is guessed according to your locale.)

Use wp2git --help to show more options.

Entirely based on

CyberShadow's version written in the D language.