def process_item(self, item, spider):
if re.search(r'***',item['lineContent'].encode('utf8')):
raise DropItem("no need in %s" % item['lineContent'])
else:
if spider.name=='**':
query = self.dbpool.runInteraction(self._conditional_insert, item)
#query.addErrback(self.handle_error)
return item
elif spider.name=='***':
query = self.dbpool.runInteraction(self._conditional_insert2, item)
#query.addErrback(self.handle_error)
return item