Dvorapa added a comment.

On many projects there already is some list of common fixes (see e.g. frwiki, cswiki or hewiki in https://www.wikidata.org/wiki/Q10957404 for WPCleaner or https://www.wikidata.org/wiki/Q6585066 for AWB). Pywikibot could read their syntax as well. I imagine something like (pseudo code):

$ pwb.py replace -fixes:local

fixes.py

fixes = []
if local and site, family in wd.Q10957404 and page(site, wd.Q10957404).exists():
    # read and translate WPCleaner fixes to Pywikibot fixes
    fixes += wpc_fixes
if local and site, family in wd.Q6585066 and page(site, wd.Q6585066).exists():
    # read and translate AWB fixes to Pywikibot fixes
    fixes += awb_fixes
if local and site, family in fixes_pages_dict and page(site, fixes_pages_dict[site]).exists():
    fixes += page(site, fixes_pages_dict[site]).text
# fix fixes

TASK DETAIL
https://phabricator.wikimedia.org/T102317

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: eranroz, Dvorapa
Cc: Dvorapa, Xqt, Matanya, Aklapper, jayvdb, pywikibot-bugs-list, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to