2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-15 00:15:00 +00:00
Go to file
nemobis 5bde9ba4fe
Merge pull request #371 from nemobis/wikia
Update list of Wikia wikis
2020-02-16 16:40:24 +02:00
batchdownload delay 1 second 2019-12-03 13:33:06 +01:00
docs added Classic theme to docs 2016-07-30 14:57:05 +02:00
listsofwikis Update list of Wikia wikis with today's list from the API 2020-02-16 16:34:46 +02:00
research/paper-wikiteam-2014 Spanish version of paper 2016-07-27 15:57:04 +02:00
testing new url https://www.archiveteam.org/ 2019-11-30 00:55:36 +01:00
wikiapiary Update wikiapiary-update-ia-params.py 2019-06-11 10:25:49 +02:00
wikimediacommons comments and https 2016-08-03 16:46:58 +02:00
wikiteam fixing #issue 212 here too 2016-09-18 01:23:57 +02:00
.gitattributes Ignore .org as well. 2016-04-07 16:55:44 -07:00
.gitignore readthedocs 2016-07-30 13:21:17 +02:00
.travis.yml disabling travis notifications 2017-06-30 17:39:02 +02:00
dumpgenerator.py Implement resume in --xmlrevisions (but not yet with list=allrevisions) 2020-02-14 13:16:33 +02:00
gui.py Issue 85: more cross-platform shebang on all scripts 2014-02-26 23:22:53 +00:00
launcher.py Merge branch 'master' of https://github.com/WikiTeam/wikiteam 2019-12-03 13:33:14 +01:00
LICENSE renaming gpl.txt to LICENSE 2014-06-25 16:03:15 +02:00
not-archived.py print 2016-01-31 00:20:04 +01:00
README.md 2020 2020-01-27 10:42:46 +01:00
requirements.txt Implement continuation for --xmlrevisions with prop=revisions in MW 1.19 2020-02-11 17:22:36 +02:00
tox.ini Add tox env for flake8 linter 2014-11-16 23:06:27 +01:00
uploader.py Upload all relevant wikidump.7z and history.xml.7z 2020-02-07 14:17:14 +02:00
wikiadownloader.py updated wikiadownloader.py to work with new dumps 2015-02-10 14:20:21 -08:00
wikipediadownloader.py wikiadownloader: Autopep8fied 2014-10-02 23:06:42 +02:00
wikispaces.py quotes issues in titles 2018-05-31 20:44:02 +02:00

WikiTeam

We archive wikis, from Wikipedia to tiniest wikis

WikiTeam software is a set of tools for archiving wikis. They work on MediaWiki wikis, but we want to expand to other wiki engines. As of 2020, WikiTeam has preserved more than 250,000 wikis, several wikifarms, regular Wikipedia dumps and 34 TB of Wikimedia Commons images.

There are thousands of wikis in the Internet. Every day some of them are no longer publicly available and, due to lack of backups, lost forever. Millions of people download tons of media files (movies, music, books, etc) from the Internet, serving as a kind of distributed backup. Wikis, most of them under free licenses, disappear from time to time because nobody grabbed a copy of them. That is a shame that we would like to solve.

WikiTeam is the Archive Team (GitHub) subcommittee on wikis. It was founded and originally developed by Emilio J. Rodríguez-Posada, a Wikipedia veteran editor and amateur archivist. Many people have helped by sending suggestions, reporting bugs, writing documentation, providing help in the mailing list and making wiki backups. Thanks to all, especially to: Federico Leva, Alex Buie, Scott Boyd, Hydriz, Platonides, Ian McEwen, Mike Dupont, balr0g and PiRSquared17.

Documentation Source code Download available backups Community Follow us on Twitter

Quick guide

This is a very quick guide for the most used features of WikiTeam tools. For further information, read the tutorial and the rest of the documentation. You can also ask in the mailing list.

Requirements

Confirm you satisfy the requirements:

pip install --upgrade -r requirements.txt

or, if you don't have enough permissions for the above,

pip install --user --upgrade -r requirements.txt

Download any wiki

To download any wiki, use one of the following options:

python dumpgenerator.py http://wiki.domain.org --xml --images (complete XML histories and images)

If the script can't find itself the API and/or index.php paths, then you can provide them:

python dumpgenerator.py --api=http://wiki.domain.org/w/api.php --xml --images

python dumpgenerator.py --api=http://wiki.domain.org/w/api.php --index=http://wiki.domain.org/w/index.php --xml --images

If you only want the XML histories, just use --xml. For only the images, just --images. For only the current version of every page, --xml --curonly.

You can resume an aborted download:

python dumpgenerator.py --api=http://wiki.domain.org/w/api.php --xml --images --resume --path=/path/to/incomplete-dump

See more options:

python dumpgenerator.py --help

Download Wikimedia dumps

To download Wikimedia XML dumps (Wikipedia, Wikibooks, Wikinews, etc) you can run:

python wikipediadownloader.py (download all projects)

See more options:

python wikipediadownloader.py --help

Download Wikimedia Commons images

There is a script for this, but we have uploaded the tarballs to Internet Archive, so it's more useful to reseed their torrents than to re-generate old ones with the script.

Developers

Build Status

You can run tests easily by using the tox command. It is probably already present in your operating system, you would need version 1.6. If it is not, you can download it from pypi with: pip install tox.

Example usage:

$ tox
py27 runtests: commands[0] | nosetests --nocapture --nologcapture
Checking http://wiki.annotation.jp/api.php
Trying to parse かずさアノテーション - ソーシャル・ゲノム・アノテーション.jpg from API
Retrieving image filenames
.    Found 266 images
.
-------------------------------------------
Ran 1 test in 2.253s

OK
_________________ summary _________________
  py27: commands succeeded
  congratulations :)
$