Things goes complicated. Why do there was need to implement this, deprecating and
subsequently abandoning the traditional login? These new methods seems to break the
possibility of working with multiple accounts simultaneously on the same PWB installation,
and quickly switching from the bot to user account, depedning on task. PWB tends to be too
much WMF-specific.
În Marţi, 16 Mai 2017 22:01:44, André Costa <lokal.profil(a)gmail.com> a scris:
Login.py is likely to break if you are not using Oauth/BotPassword. With either of those
it should be stable until the the next big breaking change.
Setting up a BotPassword is easy though
and
https://mediawiki.org/wiki/Manual:Pywikibot/BotPasswords describes how to use it with
pywikibot.
/André
On 16 May 2017 18:14, "Bináris" <wikiposta(a)gmail.com> wrote:
I think there is a lot to develop here both in software and documentation. As I am not the
fortunate one, who just follows simple instrauctions and suceeds, I try tomake use of my
experience. Currently getting to the first real step with a bot does not seem to simple
for a newcomer and may make people to give it up early.
2017-05-16 17:54 GMT+02:00 Morten Wang <nettrom(a)gmail.com>om>:
I don't remember exactly why they implemented this, but based on the manual[1] I get
the impression that they moved to using bot passwords and OAuth to have better control
over what bots can and cannot do. With the old username/password setup, that combination
gives access to everything, whereas the other approaches allow you to only provide the bot
with specific permissions.
So yes, login might break at some point.
References:1:
https://www.mediawiki.org/w iki/Manual:Bot_passwords
Cheers,Morten
On 16 May 2017 at 06:04, Bináris <wikiposta(a)gmail.com> wrote:
This is a nice conservation. :-)
I tried to log in with one of my bots interactively via web browser, and after login I got
a screen stating my password was invalid because it was shorter than 8 characters, and I
was obliged to change it. Afterwords I could log in. This is a case that is not handled by
login.py at all. I don't dare to change the password of my main bot account because it
is fortunately still logged in to compat, and I don't want to risk it.
Furthermore, after login I got these warnings from API:
WARNING: API warning (main): Subscribe to the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/m ailman/listinfo/mediawiki-api- announce> for notice
of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of
deprecated features by your application.
WARNING: API warning (login): Main-account login via "action=login" is
deprecated and may stop working without warning. To continue login with
"action=login", see [[Special:BotPasswords]]. To safely continue using
main-account login, see "action=clientlogin".
Logged in on wikipedia:hu as BinBott.
Is login.py really subject to break again at any time?
2017-05-16 11:13 GMT+02:00 Bináris <wikiposta(a)gmail.com>om>:
2017-05-16 0:31 GMT+02:00 Bináris <wikiposta(a)gmail.com>om>:
2017-05-15 23:53 GMT+02:00 Bináris <wikiposta(a)gmail.com>om>:
Hi,
I downloaded core and try to use it.
What is difference between "ERROR: Login failed (Aborted)." and "ERROR:
Login failed (Failed)."?
None of them is what I want.
I think the first message is shown when I enter the correct password. Tested with two bot
accounts. No further explanation.
Now, Tgr showed me this page:
https://www.mediawiki.org/wiki /API:Login#The_login_action
Aborted (since 1.27) if the login using the main account password (rather than a bot
password) cannot proceed because user interaction is required. The clientlogin action
should be used instead.
That's nice. How to tell login.py to handle this case and use clientlogin?
--
Bináris
--
Bináris
______________________________ _________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/ma ilman/listinfo/pywikibot
______________________________ _________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/ma ilman/listinfo/pywikibot
--
Bináris
______________________________ _________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/ mailman/listinfo/pywikibot
_______________________________________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot