Browse Source

快手 修改 条件

zhangyong 1 year ago
parent
commit
88e5ea8264
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

+ 1 - 1
kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

@@ -217,7 +217,7 @@ class KuaishouauthorScheduling:
                     realLikeCount = int(feeds[i].get('photo', {}).get('realLikeCount', 0))
                     video_percent = '%.2f' % (realLikeCount / viewCount)
                     if viewCount < 100000:
-                        if video_percent < 0.02:
+                        if video_percent < "0.02":
                             Common.logger(log_type, crawler).info(f"不符合条件:点赞/播放-{video_percent},播放量-{viewCount}\n")
                             AliyunLogger.logging(
                                 code="2004",