def __init__(self, args): self.args = args self.server_url = args['url'] if 'url' in args else nutch.DefaultServerEndpoint self.conf_id = args['conf_id'] if 'conf_id' in args else nutch.DefaultConfig self.proxy = nutch.Nutch(self.conf_id, self.server_url)
def get_nutch(): return nutch.Nutch()