|
@@ -70,6 +70,13 @@ class DY:
|
|
|
digg_count = int(data[i].get('statistics').get('digg_count')) # 点赞
|
|
|
# comment_count = int(data[i].get('statistics').get('comment_count')) # 评论
|
|
|
share_count = int(data[i].get('statistics').get('share_count')) # 转发
|
|
|
+ old_title = data[i].get('desc', "").strip().replace("\n", "") \
|
|
|
+ .replace("/", "").replace("\\", "").replace("\r", "") \
|
|
|
+ .replace(":", "").replace("*", "").replace("?", "") \
|
|
|
+ .replace("?", "").replace('"', "").replace("<", "") \
|
|
|
+ .replace(">", "").replace("|", "").replace(" ", "") \
|
|
|
+ .replace("&NBSP", "").replace(".", "。").replace(" ", "") \
|
|
|
+ .replace("'", "").replace("#", "").replace("Merge", "")
|
|
|
if share_count < 500:
|
|
|
Common.logger("dy").info(
|
|
|
f"任务:{task_mark},用户主页id:{url_id},视频id{video_id} ,分享:{share_count},点赞{digg_count}")
|
|
@@ -83,7 +90,7 @@ class DY:
|
|
|
duration = dataHelp.video_duration(video_url)
|
|
|
if int(duration) >= 45:
|
|
|
cover_url = data[i].get('video').get('cover').get('url_list')[0] # 视频封面
|
|
|
- all_data = {"video_id": video_id, "cover": cover_url, "video_url": video_url, "rule": video_percent}
|
|
|
+ all_data = {"video_id": video_id, "cover": cover_url, "video_url": video_url, "rule": video_percent, "old_title": old_title}
|
|
|
list.append(all_data)
|
|
|
if len(list) == int(number):
|
|
|
Common.logger("log").info(f"获取抖音视频总数:{len(list)}\n")
|