Re: [Wikitech-l] How to login with API?

2016-09-17 Thread Bináris
2016-09-17 20:36 GMT+02:00 Bináris : > I just couldn't login with my adnib account admin, of course. -- Bináris ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] How to login with API?

2016-09-17 Thread Bináris
2016-09-17 19:58 GMT+02:00 Marcin Cieslak : > > Bináris, did you manage to solve it? > > I am using "compat" all the time and I have no login issues. > > Just tried with a fresh clone, empty "login-data" and > no user-config.py and "python login.py" worked just fine. Sounds

Re: [Wikitech-l] How to login with API?

2016-09-17 Thread Marcin Cieslak
Dnia 06.09.2016 Gergo Tisza napisał/a: > On Mon, Sep 5, 2016 at 8:08 PM, Bináris wrote: > >> I found bot passwords, but they offer very limited user rights. >> > > They offer rights for anything which is defined in $wgGrantPermissions [1], > which

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread Brad Jorsch (Anomie)
On Tue, Sep 6, 2016 at 1:59 AM, Gergo Tisza wrote: > On Mon, Sep 5, 2016 at 9:57 PM, MZMcBride wrote: > > > I think the API documentation should probably be made a bit clearer as I > > think there are now two deprecated ways of logging in. We should

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread jayvdb
I can confirn that the interwiki script in compat is better than the core version. :( On Tue, 6 Sep 2016 12:53 Bináris, wrote: > 2016-09-06 6:57 GMT+02:00 MZMcBride : > > > > > > > I don't know enough about your requirements to say for sure, but in my >

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread Bináris
Sorry for the previous post, a wrong button pressed itself somehow. :-) ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread Bináris
2016-09-06 8:14 GMT+02:00 Gergo Tisza : > On Mon, Sep 5, 2016 at 8:08 PM, Bináris wrote: > > > I found bot passwords, but they offer very limited user rights. > > > > They offer rights for anything which is defined in $wgGrantPermissions [1], > which

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread Gergo Tisza
On Mon, Sep 5, 2016 at 8:08 PM, Bináris wrote: > I found bot passwords, but they offer very limited user rights. > They offer rights for anything which is defined in $wgGrantPermissions [1], which should be include everything a bot might need. Feel free to file a bug if

Re: [Wikitech-l] How to login with API?

2016-09-06 Thread Gergo Tisza
On Mon, Sep 5, 2016 at 9:57 PM, MZMcBride wrote: > I think the API documentation should probably be made a bit clearer as I > think there are now two deprecated ways of logging in. We should likely > make it more explicit which way applies to which versions of MediaWiki. >

Re: [Wikitech-l] How to login with API?

2016-09-05 Thread Bináris
2016-09-06 6:57 GMT+02:00 MZMcBride : > > > I don't know enough about your requirements to say for sure, but in my > uninformed opinion, the best thing would be to switch from Pywikibot > Compat to Pywikibot core. :-) This is a long story, and the talk has its own place. I do

Re: [Wikitech-l] How to login with API?

2016-09-05 Thread MZMcBride
Bináris wrote: >I found bot passwords, but they offer very limited user rights. >So the best thing is to try without API? I don't know enough about your requirements to say for sure, but in my uninformed opinion, the best thing would be to switch from Pywikibot Compat to Pywikibot core. :-)

Re: [Wikitech-l] How to login with API?

2016-09-05 Thread John
you can still login via the API,without having to use either oauth or botpassword On Mon, Sep 5, 2016 at 11:08 PM, Bináris wrote: > I found bot passwords, but they offer very limited user rights. > So the best thing is to try without API? > > 2016-09-06 0:24 GMT+02:00 Gergo

Re: [Wikitech-l] How to login with API?

2016-09-05 Thread Bináris
I found bot passwords, but they offer very limited user rights. So the best thing is to try without API? 2016-09-06 0:24 GMT+02:00 Gergo Tisza : > On Sun, Sep 4, 2016 at 12:50 PM, Bináris wrote: > > > {u'login': {u'*': u'Fetching a token via

Re: [Wikitech-l] How to login with API?

2016-09-05 Thread Gergo Tisza
On Sun, Sep 4, 2016 at 12:50 PM, Bináris wrote: > {u'login': {u'*': u'Fetching a token via action=login is deprecated. Use > action=query=tokens=login instead.'}} > Then I went to https://www.mediawiki.org/wiki/API:Login. > Here is stated something completely else: >

[Wikitech-l] How to login with API?

2016-09-04 Thread Bináris
Hi, I use Pywikibot compat (the old version), which is now broken, and nobody wants to correct it. So I tried to to it myself. The error is with the API login. The original method (which worked previously) is: 'action': 'login', 'lgname': self.username,