This is an old revision of the document!


Pywikibot

Perform all operations inside the pywikibot repository directory once cloned.

Fetch

git clone --recursive https://github.com/wikimedia/pywikibot
cd pywikibot

Install

python3 -m venv ~/.venvs/pywikibot
~/.venvs/pywikibot/bin/python -m pip install -r requirements.txt

Config

Enter the URL and name to create a family file for the private site. Select no when asked about interwiki links.

~/.venvs/pywikibot/bin/python pwb.py generate_family_file.py
cp user-config.py.sample user-config.py
vi user-config.py

Run

~/.venvs/pywikibot/bin/python pwb.py <script_name>

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies