GitHub repository for VoWi bots, extensions and userscripts.
The mwbot
module provides a lightweight MediaWiki API wrapper.
general/
contains scripts useful for any MediaWiki installation:
rollback.py
-- undo changes by a user with a specific edit summary (useful to undo batch edits of bots)subpage_mover.py
-- move subpages, checking for collisions beforehand and without being limited to $wgMaximumMovedPages
vowi/
contains VoWi-specific scripts:
mat_mover.py
-- move LVAs with their resourcesbsp_mover.py
-- move Beispiele to a new semesterlva_fixer.py
-- a script to fix LVA-Daten templatesbsp_fixer.py
-- a script to fix Beispiel templatesbaustein_fixer.py
-- a script to fix templates inKategorie:Textbausteine für Beispiele
gen_bsptable.py
-- a script to generate beispiel tablesreport.py
-- report on incorrect template usage atVoWi:Report
old_mat_counter.py
-- a script to count the number of outdated resources so they can be excluded in the statistics on the main page
Install Python 3 and the requests and mwparserfromhell packages:
$ pip3 install requests mwparserfromhell
Install the mwbot
package:
$ pip3 install -e ./mwbot
Create an .ini
file with the following:
[root]
api=https://vowi.fsinf.at/api.php
username=Your Username
password=Your Password
Scripts can then be run as follows:
$ ACCT=your.ini ./script.py