https://github.com/simon04/wp2git
Downloads and imports Wikipedia page histories to a git repository
https://github.com/simon04/wp2git
Last synced: about 1 year ago
JSON representation
Downloads and imports Wikipedia page histories to a git repository
- Host: GitHub
- URL: https://github.com/simon04/wp2git
- Owner: simon04
- License: other
- Created: 2016-04-22T18:35:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-08T14:05:52.000Z (over 9 years ago)
- Last Synced: 2025-02-12T00:37:57.299Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
wp2git
======
This program allows you to download and convert any Wikipedia article's history to a `git` repository, for easy browsing and blaming.
### Usage
$ wp2git.py [--bare] 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 its entire edit history.
Run `wp2git --help` for more options.
### Analyzing using git
* Who last changed this line? `git blame article_name.mw`
* Who introduced this sentence? `git log -p -G "the natural number that succeeds 41"`
### Requirements
* [Python](https://www.python.org/) 2 or 3
* [`git`](https://git-scm.com/) accessible from `PATH`.
* [`mwclient`](https://github.com/mwclient/mwclient) (use `pip install mwclient`).
### Credits
1. [CyberShadow's version](https://github.com/CyberShadow/wp2git) written in the D language.
2. [dlenski's version](https://github.com/CyberShadow/wp2git) written for Python 2 only.