|
@@ -352,7 +352,7 @@ class HourList:
|
|
|
# Common.logger(log_type).info("宽高:{}*{}", video_width, video_height)
|
|
|
Common.logger(log_type).info(
|
|
|
"视频发布时间:{}", time.strftime(
|
|
|
- "%Y-%m-%d %H:%M:%S", time.localtime(int(video_send_time) / 1000)))
|
|
|
+ "%Y/%m/%d %H:%M:%S", time.localtime(int(video_send_time) / 1000)))
|
|
|
Common.logger(log_type).info("用户名:{}", user_name)
|
|
|
# Common.logger(log_type).info("用户头像:{}", head_url)
|
|
|
# Common.logger(log_type).info("封面:{}", cover_url)
|
|
@@ -399,8 +399,8 @@ class HourList:
|
|
|
video_duration,
|
|
|
cover_url,
|
|
|
video_url,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(video_send_time) / 1000)),
|
|
|
- str(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(get_feeds_time))),
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(video_send_time) / 1000)),
|
|
|
+ str(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(get_feeds_time))),
|
|
|
video_play_cnt]]
|
|
|
# 等待 1s,防止操作云文档太频繁,导致报错
|
|
|
time.sleep(1)
|
|
@@ -452,7 +452,7 @@ class HourList:
|
|
|
v_upload_time = update_hour_sheet[i][9]
|
|
|
Common.logger(log_type).info("video_send_time:{}", v_upload_time)
|
|
|
# 抓取时间的时间戳格式(秒为单位)
|
|
|
- v_time = int(time.mktime(time.strptime(v_upload_time, "%Y-%m-%d %H:%M:%S")))
|
|
|
+ v_time = int(time.mktime(time.strptime(v_upload_time, "%Y/%m/%d %H:%M:%S")))
|
|
|
|
|
|
# 抓取时间:日期
|
|
|
upload_data = v_upload_time.split(" ")[0]
|
|
@@ -776,7 +776,7 @@ class HourList:
|
|
|
|
|
|
# 抓取时间
|
|
|
v_upload_time = download_hour_sheet[i][9]
|
|
|
- v_send_time = int(time.mktime(time.strptime(v_upload_time, "%Y-%m-%d %H:%M:%S")))
|
|
|
+ v_send_time = int(time.mktime(time.strptime(v_upload_time, "%Y/%m/%d %H:%M:%S")))
|
|
|
|
|
|
# 播放量
|
|
|
v_play_cnt = download_hour_sheet[i][10]
|
|
@@ -912,7 +912,7 @@ class HourList:
|
|
|
time.sleep(1)
|
|
|
Feishu.insert_columns(log_type, "xiaoniangao", "yatRv2", "ROWS", 1, 2)
|
|
|
# 视频信息写入云文档
|
|
|
- values = [[time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
+ values = [[time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
"小时级上升榜",
|
|
|
v_id,
|
|
|
v_title,
|
|
@@ -923,7 +923,7 @@ class HourList:
|
|
|
hour_video_share_cnt,
|
|
|
int(hour_video_duration) / 1000,
|
|
|
hour_video_resolution,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S",
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S",
|
|
|
time.localtime(int(hour_video_send_time) / 1000)),
|
|
|
hour_user_name,
|
|
|
p_id,
|
|
@@ -1068,7 +1068,7 @@ class HourList:
|
|
|
time.sleep(1)
|
|
|
Feishu.insert_columns(log_type, "xiaoniangao", "yatRv2", "ROWS", 1, 2)
|
|
|
# 视频信息写入云文档
|
|
|
- values = [[time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
+ values = [[time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
"小时级上升榜",
|
|
|
v_id,
|
|
|
v_title,
|
|
@@ -1079,7 +1079,7 @@ class HourList:
|
|
|
hour_video_share_cnt,
|
|
|
int(hour_video_duration) / 1000,
|
|
|
hour_video_resolution,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S",
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S",
|
|
|
time.localtime(int(hour_video_send_time) / 1000)),
|
|
|
hour_user_name,
|
|
|
p_id,
|
|
@@ -1222,7 +1222,7 @@ class HourList:
|
|
|
time.sleep(1)
|
|
|
Feishu.insert_columns(log_type, "xiaoniangao", "yatRv2", "ROWS", 1, 2)
|
|
|
# 视频信息写入云文档
|
|
|
- values = [[time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
+ values = [[time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
"小时级上升榜",
|
|
|
v_id,
|
|
|
v_title,
|
|
@@ -1233,7 +1233,7 @@ class HourList:
|
|
|
hour_video_share_cnt,
|
|
|
int(hour_video_duration) / 1000,
|
|
|
hour_video_resolution,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S",
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S",
|
|
|
time.localtime(int(hour_video_send_time) / 1000)),
|
|
|
hour_user_name,
|
|
|
p_id,
|
|
@@ -1376,7 +1376,7 @@ class HourList:
|
|
|
time.sleep(1)
|
|
|
Feishu.insert_columns(log_type, "xiaoniangao", "yatRv2", "ROWS", 1, 2)
|
|
|
# 视频信息写入云文档
|
|
|
- values = [[time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
+ values = [[time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
"小时级上升榜",
|
|
|
v_id,
|
|
|
v_title,
|
|
@@ -1387,7 +1387,7 @@ class HourList:
|
|
|
hour_video_share_cnt,
|
|
|
int(hour_video_duration) / 1000,
|
|
|
hour_video_resolution,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S",
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S",
|
|
|
time.localtime(int(hour_video_send_time) / 1000)),
|
|
|
hour_user_name,
|
|
|
p_id,
|
|
@@ -1530,7 +1530,7 @@ class HourList:
|
|
|
time.sleep(1)
|
|
|
Feishu.insert_columns(log_type, "xiaoniangao", "yatRv2", "ROWS", 1, 2)
|
|
|
# 视频信息写入云文档
|
|
|
- values = [[time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
+ values = [[time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(upload_time))),
|
|
|
"小时级上升榜",
|
|
|
v_id,
|
|
|
v_title,
|
|
@@ -1541,7 +1541,7 @@ class HourList:
|
|
|
hour_video_share_cnt,
|
|
|
int(hour_video_duration) / 1000,
|
|
|
hour_video_resolution,
|
|
|
- time.strftime("%Y-%m-%d %H:%M:%S",
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S",
|
|
|
time.localtime(int(hour_video_send_time) / 1000)),
|
|
|
hour_user_name,
|
|
|
p_id,
|