Last modified: 2014-08-08 08:47:07 UTC
e.g. user-config.py: usernames['wikipedia']['nl'] = 'valhallasw-botje' sysopnames['wikipedia']['nl'] = 'valhallasw' test.py import pywikibot s = pywikibot.Site() s.login(False) # as user, asks for password s.login(True) # as sysop, asks for password, *overwrites* cookies (!) s.login(False) # as users, asks for password *again* It should be possible to switch between sysop and bot accounts in a script without requiring the user to enter the password every time