|
@@ -162,29 +162,6 @@ class Top:
|
|
|
AliyunLogger.logging(data['channel'], data, "获取成功等待写入改造任务", channel_account_id)
|
|
|
in_job_video_data(redis_data, json.dumps(data, ensure_ascii=False, indent=4))
|
|
|
sqlCollect.insert_pj_video_data(channel_account_id, channel_id)
|
|
|
- logger.info(f"[+] 开始写入飞书表格")
|
|
|
- current_time = datetime.now()
|
|
|
- formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
- values = [
|
|
|
- [
|
|
|
- data['uid'],
|
|
|
- data['videoid'],
|
|
|
- data['return_uv'],
|
|
|
- data['type'],
|
|
|
- data['type_owner'],
|
|
|
- data['channel'],
|
|
|
- data['channel_owner'],
|
|
|
- data['title'],
|
|
|
- data['dt'],
|
|
|
- channel_account_id,
|
|
|
- tag_transport_channel,
|
|
|
- formatted_time
|
|
|
- ]
|
|
|
- ]
|
|
|
- Feishu.insert_columns("KUIksoqZkhvZOrtqA1McPwObn7d", "57c076", "ROWS", 1, 2)
|
|
|
- time.sleep(0.5)
|
|
|
- Feishu.update_values("KUIksoqZkhvZOrtqA1McPwObn7d", "57c076", "A2:Z2", values)
|
|
|
- logger.info(f"[+] 成功写入飞书表格")
|
|
|
return
|
|
|
|
|
|
|