On Sun, Sep 4, 2016 at 12:50 PM, BinĂ¡ris wikiposta@gmail.com wrote:
{u'login': {u'*': u'Fetching a token via action=login is deprecated. Use action=query&meta=tokens&type=login instead.'}} Then I went to https://www.mediawiki.org/wiki/API:Login. Here is stated something completely else: action=clientlogin
The intro section of that page explains which action to use. I don't think the compat branch of Pywikibot supports OAuth; it definitely does not support action=clientlogin (which is not meant for bots). It will work with action=login and bot passwords [1] after [2] is merged.
[1] https://www.mediawiki.org/wiki/Manual:Bot_passwords [2] https://gerrit.wikimedia.org/r/#/c/306133/