|
@@ -105,10 +105,11 @@ class KanyikanRecommend:
|
|
|
for i in range(len(feeds)):
|
|
|
vid = feeds[i].get("videoId", "")
|
|
|
shared_cnt = int(feeds[i].get("shared_cnt", 0))
|
|
|
+ liked_cnt = int(feeds[i].get("liked_cnt", 0))
|
|
|
playCount = int(feeds[i].get("playCount", 0))
|
|
|
- video_percent = '%.2f' % (shared_cnt / playCount)
|
|
|
+ video_percent = '%.2f' % (liked_cnt / playCount)
|
|
|
if playCount < 100000:
|
|
|
- if float(video_percent) < 0.05 and playCount < 15000:
|
|
|
+ if float(video_percent) < 0.01 and playCount < 10000:
|
|
|
Common.logger(log_type, crawler).info(f"分享/播放:{video_percent},播放量:{playCount}\n")
|
|
|
Common.logging(log_type, crawler, env, f"分享/播放:{video_percent},播放量:{playCount}\n")
|
|
|
continue
|
|
@@ -207,6 +208,7 @@ class KanyikanRecommend:
|
|
|
video_id = feeds[j].get("videoId", "")+"feed"
|
|
|
s_cnt = int(feeds[j].get("shared_cnt", 0))
|
|
|
p_count = int(feeds[j].get("playCount", 0))
|
|
|
+ l_cnt = int(feeds[j].get("liked_cnt", 0))
|
|
|
if p_count < 100000:
|
|
|
if s_cnt < 200 and p_count < 15000:
|
|
|
Common.logger(log_type, crawler).info(f"分享:{video_percent},播放量:{playCount}\n")
|