Traceback (most recent call last): File "C:\Python27\pywikipedia\login.py", line 475, in <module> main() File "C:\Python27\pywikipedia\login.py", line 470, in main loginMan.login() File "C:\Python27\pywikipedia\login.py", line 344, in login cookiedata = self.getCookie(api) File "C:\Python27\pywikipedia\login.py", line 258, in getCookie self.site._token[index] = data['login']['lgtoken'] + "+\\" KeyError: 'lgtoken'
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Xqt | T99365 [RFC] Compat deprecation | |||
Declined | None | T150613 Compat login broken. KeyError: 'lgtoken' |
Event Timeline
Comment Actions
API changes in 1.28:
- The following response properties from action=login, deprecated in 1.27, are now removed: lgtoken, cookieprefix, sessionid. Clients should handle cookies to properly manage session state.
- Submitting the lgtoken and lgpassword parameters in the query string to action=login is now deprecated and outputs a warning. They should be submitted in the POST body instead.
(imho: better one merge to the core branch instead of investigating into this stuff)