新增农行定时

This commit is contained in:
沈健
2025-02-13 13:13:35 +08:00
parent a78c8010fc
commit 2d6ff5e11c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ headers = {
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhY2NvdW50IjoiYWlyZmxvdyIsImV4cCI6MTMxMzM5NDE2MzQwNDYxLCJvcmdDb2RlIjoiMDAxLjAwMSIsInJvbGVzIjpbIm5vcm1hbCJdLCJ1c2VySWQiOiIxODg5ODc0MDc4MTgxODMwNjU2IiwidXNlcm5hbWUiOiLlrprml7bku7vliqEifQ.SvD42b8XGlxYe_0dBr215ZgxR9aBdsipaySceZuuWR6g5cHelU5oc-dRtK63b0CMoN07BSvh2XYdlIzQ92ngOA"
}
ret = requests.post(url='https://api.fangjia.com/usageStatisticsList', json=data, headers=headers, verify=False)
ret = requests.post(url='https://api.fangjia.com/exportStatistics', json=data, headers=headers, verify=False)
#ret = requests.post(url='http://127.0.0.1:8080/exportStatistics', json=data, headers=headers, verify=False)
nextcloud_aim_file_path = '共享/AI估价/农行统计'
@@ -34,4 +34,4 @@ with open(file_path, 'wb') as file:
file.write(ret.content)
nextcloudutils.up_to_nextcloud(file_path, nextcloud_aim_file_path + "/" + "AI估价农行" + formatted_date + ".xlsx")
dingutils.send_text("[AI估价]农行" + formatted_date + "统计完成, 请点击 https://nextcloud.fangjia.com/s/WK9MzWwH5kjwMBB 查看", "f4f3b03c35c67d097f70affa27e7d47d7a1b6c0eed2438f4d8aa654834419a0b")
dingutils.send_text("【AI估价】农行" + formatted_date + "统计完成, 请点击 https://nextcloud.fangjia.com/s/WK9MzWwH5kjwMBB 查看", "f4f3b03c35c67d097f70affa27e7d47d7a1b6c0eed2438f4d8aa654834419a0b")
+1 -1
View File
@@ -5,7 +5,7 @@ import pendulum
with DAG(
dag_id="ai_nonghang_use_dag",
# 每天9:40
schedule_interval="0 40 9 * * 1-5",
schedule_interval="40 9 * * 1-5",
start_date=pendulum.datetime(2025, 2, 13, tz="Asia/Shanghai"),
description="AI估价农行使用情况",
catchup=True