def __init__(self, fmt="mysql", **kwargs): self.fmt = fmt if fmt == "mysql": self.db = mysql_connection MYSQLUtils.cleanup_data(self) else: self.fh = FileHandler() self.fh.cleanup_data(self, fmt) super(StanfordSpider, self).__init__(**kwargs) pass
def __init__(self, **kwargs): self.db = mysql_connection MYSQLUtils.cleanup_data(self) super(StanfordSpider, self).__init__(**kwargs) pass
def __init__(self, **kwargs): self.db = mysql_connection MYSQLUtils.cleanup_data(self) super(ComputerScienceOfWaterLooSpider, self).__init__(**kwargs) pass