def spider_closed(self, spider, reason): spider.logger.info('Spider closed: %s,%s\n', spider.name, reason) merge_kdata_to_one(security_item=self.settings.get("security_item"), fuquan=self.settings.get("fuquan"))