https://bugzilla.wikimedia.org/show_bug.cgi?id=72503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |UNCONFIRMED CC| |jayvdb@gmail.com Ever confirmed|1 |0
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- $ python pwb.py generate_family_file.py Usage: generate_family_file.py <url> <short name> Example: generate_family_file.py https://www.mywiki.bogus/wiki/Main_Page mywiki This will create the file families/mywiki_family.py Please insert URL to wiki: http://glossary.reuters.com Please insert a short name (eg: freeciv): reuters Generating family file from http://glossary.reuters.com *** WARNING: Api does not seem to be enabled on http://glossary.reuters.com
================================== api url: http://glossary.reuters.com/api.php MediaWiki version: 1.11.1 ==================================
Determining other languages... Loading wikis... * en... in cache Writing pywikibot/families/reuters_family.py... $ cat pywikibot/families/reuters_family.py # -*- coding: utf-8 -*- """ This family file was auto-generated by $Id: 78e663f86b4d504a28387ecbf0c2e0e8e549cf4e $ Configuration parameters: url = http://glossary.reuters.com name = reuters
Please do not commit this to the Git repository! """
from pywikibot import family
class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = 'reuters' self.langs = { 'en': 'glossary.reuters.com', }
def scriptpath(self, code): return { 'en': '', }[code]
def version(self, code): return { 'en': u'1.11.1', }[code]
Please add more detailed steps to reproduce