Xqt added a comment.
I made this small script derived from yours:
import pywikibot
wikitech = pywikibot.Site('en', 'wikitech')
print('login:', wikitech.login())
sal_page = pywikibot.Page(wikitech, 'Server_Admin_Log')
text = sal_page.text
print('text:', len(text))
print('username:', wikitech.username())
print('user:', wikitech.user())
print('logged in:', wikitech.logged_in())
print('logout:', wikitech.logout())
print('username:', wikitech.username())
print('user:', wikitech.user())
print('logged in:', wikitech.logged_in())
I called it several times and got the following result:
C:\pwb\GIT\core>py -3.13 -m pwb -user:pywikibot-test bpwtest
Password for user Pywikibot-test on wikitech:en (no characters will be
shown):
login: None
text: 114
username: Pywikibot-test
user: Pywikibot-test
logged in: True
logout: None
username: Pywikibot-test
user: None
logged in: False
Still no idea what happens on your side. Could you please delete the apicache
and try again.
TASK DETAIL
https://phabricator.wikimedia.org/T395670
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Ladsgroup, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho,
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Hannolans, mys_721tx,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]