User:NARDatabaseBot

From MetaBase

Jump to: navigation, search

Bot for loading the NAR Database Data. The bot is implemented using the "Python wikipedia robot framework" http://pywikipediabot.sourceforge.net/

For usage instructions see;


[edit] Settings

[edit] user-config.py

mylang = 'en'
family = 'metabase'
usernames['metabase']['en'] = u'NARDatabaseBot'
sysopnames['metabase']['en'] = u'NARDatabaseBot'

[edit] families/metabase_family.py

# -*- coding: utf-8  -*-

import family

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)

        self.name = 'metabase'

        self.langs = {
                'en': 'biodatabase.org',
        }
        self.namespaces[4] = {
            '_default': [u'MetaBase', self.namespaces[4]['_default']],
        }
        self.namespaces[5] = {
            '_default': [u'MetaBase talk', self.namespaces[5]['_default']],
        }

    def version(self, code):
        return "1.10.0"

    def path(self, code):
        return '/index.php'
Personal tools