|
@@ -131,7 +131,12 @@ class PiaoQuanPipeline(object):
|
|
|
if self.platform == "jixiangxingfu" and self.mode == "recommend":
|
|
|
return True
|
|
|
out_id = self.item["out_video_id"]
|
|
|
- sql = f""" select 1 from crawler_video where platform = "{self.platform}" and out_video_id="{out_id}"; """
|
|
|
+ # 判断加上标题去重
|
|
|
+ if self.mode == "recommend" and self.platform == "yuannifuqichangzai":
|
|
|
+ title = self.item["video_title"]
|
|
|
+ sql = f""" select 1 from crawler_video where platform = "{self.platform}" and out_video_id="{out_id}" and video_title="{title}"; """
|
|
|
+ else:
|
|
|
+ sql = f""" select 1 from crawler_video where platform = "{self.platform}" and out_video_id="{out_id}"; """
|
|
|
repeat_video = self.mysql.select(sql=sql)
|
|
|
if repeat_video:
|
|
|
# 喜事多多平台 4 天去重一次
|