Meza/Notes on Implementing a Pywikibot
< Meza
This assumes you have a MEZA mediawiki 34.x farm running on a local VM with 2 wikis installed MyWikiA
and MyWikiB
Following the tutorial at: https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation
Verify the pywikibot requirements
editFortunately MW 34.x uses python2 AND python3 .. so be sure to use python3 and pip3 in these instructions
Test version of Python:
$ python3 --version |
result:
Python 3.5.6 |
ok to install pywikibot |
verify version of pip
$ pip3 --version |
result
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5) |
Install Pywikibot
editDownload and unpack python3 version of pywikibot into home directory
$ cd ~ $ wget -c https://tools.wmflabs.org/pywikibot/core_stable.tar.gz -O - | tar -xz
test pywikibot on Mediawiki.org
editgenerate user configuration file
$ cd /home/<username>/core_stable/ $ sudo python3 pwb.py generate_user_files
- selected option 6 for mediawiki
- entered my username for mediawiki.org
sudo python3 pwb.py login
provided my password and viola .. I am logged in to my mediawiki.org account via pywiki...
Ctrl-C .. now let's set up for my local VBox MEZA wiki using help from: Manual:Pywikibot/Use on third-party wikis