Maybe you bot has the right page but read permission is needed for login api call which makes no sense. Is there any white list to enable the login api call?
Try to login with use_api_login = False in your user_config but I am not sure whether this still works with mw >= 1.18
Regards xqt
----- Original Nachricht ---- Von: Thehelpfulone thehelpfulonewiki@gmail.com An: pywikipedia-l@lists.wikimedia.org Datum: 12.04.2012 21:49 Betreff: [Pywikipedia-l] Using pywikipedia on a https:// site
Hi all,
I'm trying to use pywikipedia on a private wmf wiki, it can only be accessed by viewing it in https://. When I run login.py -all, I get
Traceback (most recent call last): File "login.py", line 436, in <module> main() File "login.py", line 414, in main if not forceLogin and site.loggedInAs(sysop = sysop): File "/home/thehelpfulone/pywikipedia/wikipedia.py", line 5102, in loggedInAs self._load(sysop = sysop) File "/home/thehelpfulone/pywikipedia/wikipedia.py", line 6053, in _load raise RuntimeError('%s' % data['error']) RuntimeError: {u'info': u'You need read permission to use this module', u'code': u'readapidenied'}
How can I fix the bot to allow it to log in (and thus run scripts?). By private wiki, I mean a wiki that you have to login to if you want to read anything other than the Main Page.
Thanks for your help!
Thehelpfulone http://en.wikipedia.org/wiki/User:Thehelpfulone English Wikipedia Administrator
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 13 April 2012 09:48, info@gno.de wrote:
Maybe you bot has the right page but read permission is needed for login api call which makes no sense. Is there any white list to enable the login api call?
Try to login with use_api_login = False in your user_config but I am not sure whether this still works with mw >= 1.18
Regards xqt
Tried that - still the same error message :(
Hi Thehelpfulone
Op 14-4-2012 13:14, Thehelpfulone schreef:
On 13 April 2012 09:48, <info@gno.de mailto:info@gno.de> wrote:
Maybe you bot has the right page but read permission is needed for login api call which makes no sense. Is there any white list to enable the login api call? Try to login with use_api_login = False in your user_config but I am not sure whether this still works with mw >= 1.18 Regards xqt
Tried that - still the same error message :(
I looked at this some time ago. It's a chicken and egg problem. You need to be logged in to read anything from the api, but you need to read from the api to be able to login.I think someone should look into this flow.
Maarten
pywikipedia-l@lists.wikimedia.org