https://github.com/nikolas/mediawiki-export
Export MediaWiki categories for archiving purposes
https://github.com/nikolas/mediawiki-export
mediawiki
Last synced: about 1 month ago
JSON representation
Export MediaWiki categories for archiving purposes
- Host: GitHub
- URL: https://github.com/nikolas/mediawiki-export
- Owner: nikolas
- License: gpl-3.0
- Created: 2018-05-04T16:50:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-24T15:17:40.000Z (over 3 years ago)
- Last Synced: 2024-10-20T14:42:31.815Z (6 months ago)
- Topics: mediawiki
- Language: Python
- Homepage: http://www.columbia.edu/~njn2118/journal/2018/5/4.html
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mediawiki-export
Export MediaWiki categories for archiving purposes.This script takes a list of categories, looks up those categories in
your wiki's API, and then exports each page of those categories to text
files.These files get archived into a directory and tarball:
* wiki-export-YYYY-MM-DD/
* wiki-export-YYYY-MM-DD.tar.gzAll within the base directory at `/var/backups/wiki/`.
## Usage
In the script, set CATEGORIES and API_URL to the appropriate values. Then run the script. Set it up as a cron job if you want.