def open_spider(self, spider): logging.log(logging.INFO, "open_spider") self.con = Connector.connect(**self.config) self.cursor = self.con.cursor()