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
Version: core-(2.0)
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=55066
https://bugzilla.wikimedia.org/show_bug.cgi?id=69283