Page MenuHomePhabricator
Paste P4930

pywikibot login to private wiki,1.26
ActivePublic

Authored by Nemo_bis on Feb 14 2017, 4:52 PM.
Tags
None
Referenced Files
F5630010: pywikibot login to private wiki,1.26
Feb 14 2017, 4:52 PM
Subscribers
None
{u'error': {u'info': u'You need read permission to use this module', u'code': u'readapidenied', u'help': u'See http://95.110.231.234/wikimaffei/api.php for API usage'}}
ERROR: APIError: readapidenied: You need read permission to use this module [help:See http://95.110.231.234/wikimaffei/api.php for API usage]
Should be logged in now
Logged in on maffei:maffei as Federico.leva-Bot.
Dropped throttle(s).
Closing network session.
Network session closed.
nemobis@tools-bastion-03:~/pwb/core$ python pwb.py scripts/login.py -family:maffei -lang:maffei -v
Pywikibot rd37403e91d8a6ea258c9bd87a40901eb4ae2961c
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4]
Found 1 maffei:maffei processes running, including this one.
Logged in on maffei:maffei as Federico.leva-Bot.
Dropped throttle(s).
Closing network session.
Network session closed.
nemobis@tools-bastion-03:~/pwb/core$ cat pywikibot/families/maffei_family.py # -*- coding: utf-8 -*-
"""Family module for Wiki-Maffei."""
#
# (C) Pywikibot team, 2007-2015
#
# Distributed under the terms of the MIT license.
# from __future__ import absolute_import, unicode_literals
__version__ = '$Id: c4dc48ed9b6c45a6b3dd004fc987a37bbc94d392 $'
from pywikibot import family
class Family(family.SingleSiteFamily, family.WikiaFamily):
"""Family class for Wiki-Maffei."""
name = 'maffei'
code = 'maffei'
domain = '95.110.231.234'
def scriptpath(self, code):
return '/wikimaffei'
def version(self, code):
return '1.26.2'