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(a)gmail.com>
An: pywikipedia-l(a)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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l