I have to use compat selflink.py because core's one doesn't support -xml option. Anyway (even using -page) it freezes trying saving any edit. Here's the traceback after a keyboard interrupt:
File "selflink.py", line 306, in <module> main() File "selflink.py", line 301, in main bot.run() File "selflink.py", line 240, in run self.treat(page) File "selflink.py", line 222, in treat pywikibot.showDiff(oldText, text) File "/home/.../compat/pywikibot/support.py", line 161, in showDiff diff += lastline + '\n' KeyboardInterrupt