|
@@ -241,8 +241,15 @@ class ShiPinHaoAuthor(object):
|
|
divisor_cnt = 0
|
|
divisor_cnt = 0
|
|
else:
|
|
else:
|
|
divisor_cnt = int(share_cnt / fav_count)
|
|
divisor_cnt = int(share_cnt / fav_count)
|
|
|
|
+ if share_cnt < 500:
|
|
|
|
+ return True
|
|
|
|
+ video_percent = '%.2f' % (share_cnt / like_cnt)
|
|
|
|
+ special = float(0.25)
|
|
|
|
+ if float(video_percent) < special:
|
|
|
|
+
|
|
|
|
+ return True
|
|
# 视频时长小于30秒 返回
|
|
# 视频时长小于30秒 返回
|
|
- if duration < 15:
|
|
|
|
|
|
+ if duration < 45:
|
|
values = [[
|
|
values = [[
|
|
obj['nickname'],
|
|
obj['nickname'],
|
|
publish_time_str,
|
|
publish_time_str,
|
|
@@ -262,48 +269,6 @@ class ShiPinHaoAuthor(object):
|
|
time.sleep(0.5)
|
|
time.sleep(0.5)
|
|
Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values)
|
|
Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values)
|
|
return True
|
|
return True
|
|
- # # 分享小于1000 返回
|
|
|
|
- # if share_cnt < 500:
|
|
|
|
- # values = [[
|
|
|
|
- # obj['nickname'],
|
|
|
|
- # publish_time_str,
|
|
|
|
- # formatted_time,
|
|
|
|
- # int(obj['fav_count']),
|
|
|
|
- # int(obj['comment_count']),
|
|
|
|
- # int(obj['like_count']),
|
|
|
|
- # int(obj['forward_count']),
|
|
|
|
- # divisor_cnt,
|
|
|
|
- # video_obj.get('title').split("\n")[0].split("#")[0],
|
|
|
|
- # duration,
|
|
|
|
- # '否',
|
|
|
|
- # '分享小于500',
|
|
|
|
- # video_obj.get('DownloadAddress')
|
|
|
|
- # ]]
|
|
|
|
- # Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2)
|
|
|
|
- # time.sleep(0.5)
|
|
|
|
- # Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values)
|
|
|
|
- # return True
|
|
|
|
- # # 分享小于等于99999
|
|
|
|
- # if share_cnt <= 99999 and divisor_cnt < 1:
|
|
|
|
- # values = [[
|
|
|
|
- # obj['nickname'],
|
|
|
|
- # publish_time_str,
|
|
|
|
- # formatted_time,
|
|
|
|
- # int(obj['fav_count']),
|
|
|
|
- # int(obj['comment_count']),
|
|
|
|
- # int(obj['like_count']),
|
|
|
|
- # int(obj['forward_count']),
|
|
|
|
- # divisor_cnt,
|
|
|
|
- # video_obj.get('title').split("\n")[0].split("#")[0],
|
|
|
|
- # duration,
|
|
|
|
- # '否',
|
|
|
|
- # f'分享小于100000,分享/大拇指:{divisor_cnt}',
|
|
|
|
- # video_obj.get('DownloadAddress')
|
|
|
|
- # ]]
|
|
|
|
- # Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2)
|
|
|
|
- # time.sleep(0.5)
|
|
|
|
- # Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values)
|
|
|
|
- # return True
|
|
|
|
pipeline = PiaoQuanPipeline(
|
|
pipeline = PiaoQuanPipeline(
|
|
platform=self.platform,
|
|
platform=self.platform,
|
|
mode=self.mode,
|
|
mode=self.mode,
|