You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-17Lines changed: 41 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,11 @@ This is a very quick guide for the most used features of WikiTeam tools. For fur
27
27
28
28
### Requirements
29
29
30
-
Confirm you satisfy the requirements:
30
+
If you have both [pipenv](https://github.com/pypa/pipenv) and [pyenv](https://github.com/pyenv/pyenv), you can install all the project dependencies isolated from your system with the following command:
31
+
32
+
`pipenv install`
33
+
34
+
Otherwise you can use the traditional way(using pip), first, confirm you satisfy the requirements:
31
35
32
36
`pip install --upgrade -r requirements.txt`
33
37
@@ -41,32 +45,49 @@ To download any wiki, use one of the following options:
41
45
42
46
`python dumpgenerator.py http://wiki.domain.org --xml --images` (complete XML histories and images)
43
47
48
+
`pipenv run dump http://wiki.domain.org --xml --images` <sup>**pipenv version**</sup>
49
+
44
50
If the script can't find itself the API and/or index.php paths, then you can provide them:
`pipenv run dump --api=http://wiki.domain.org/w/api.php --index=http://wiki.domain.org/w/index.php --xml --images` <sup>**pipenv version**</sup>
60
+
61
+
50
62
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`.
`pipenv run dump --api=http://wiki.domain.org/w/api.php --xml --images --resume --path=/path/to/incomplete-dump` <sup>**pipenv version**</sup>
69
+
56
70
See more options:
57
71
58
72
`python dumpgenerator.py --help`
59
73
74
+
`pipenv run dump --help` <sup>**pipenv version**</sup>
75
+
60
76
### Download Wikimedia dumps
61
77
62
78
To download [Wikimedia XML dumps](http://dumps.wikimedia.org/backup-index.html) (Wikipedia, Wikibooks, Wikinews, etc) you can run:
63
79
64
80
`python wikipediadownloader.py` (download all projects)
65
81
82
+
`pipenv run wikipediadownloader` <sup>**pipenv version**</sup>
83
+
84
+
66
85
See more options:
67
86
68
87
`python wikipediadownloader.py --help`
69
88
89
+
`pipenv run wikipediadownloader --help` <sup>**pipenv version**</sup>
90
+
70
91
### Download Wikimedia Commons images
71
92
72
93
There is a script for this, but we have [uploaded the tarballs](https://archive.org/details/wikimediacommons) to Internet Archive, so it's more useful to reseed their torrents than to re-generate old ones with the script.
@@ -75,22 +96,25 @@ There is a script for this, but we have [uploaded the tarballs](https://archive.
You can run tests easily by using the [tox](https://pypi.python.org/pypi/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`.
99
+
You can run tests easily by using the [tox](https://pypi.python.org/pypi/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` (if you aren't using pipenv already).
0 commit comments