A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112
  1. # -*- coding: utf-8 -*-
  2. # A base class for bot tasks that edit Wikipedia.
  3. class BaseTask(object):
  4. def __init__(self):
  5. """A base class for bot tasks that edit Wikipedia."""
  6. self.task_name = None
  7. def run(self, **kwargs):
  8. """Run this task."""
  9. pass