|
@@ -77,6 +77,7 @@ class KS:
|
|
|
if response.status_code == 200 and "error_msg" in response.text:
|
|
|
Feishu.bot("wangxueke", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', 'wangxueke')
|
|
|
Feishu.bot("liuzhaoheng", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', '刘兆恒')
|
|
|
+ return list
|
|
|
elif "visionProfilePhotoList" not in response.json()["data"]:
|
|
|
if name == '快手品类账号':
|
|
|
Feishu.bot("wangxueke", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', 'wangxueke')
|
|
@@ -84,8 +85,7 @@ class KS:
|
|
|
|
|
|
else:
|
|
|
Feishu.bot(mark, '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', name)
|
|
|
- time.sleep(900)
|
|
|
- continue
|
|
|
+ return list
|
|
|
elif "feeds" not in response.json()["data"]["visionProfilePhotoList"]:
|
|
|
if name == '快手品类账号':
|
|
|
Feishu.bot("wangxueke", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', 'wangxueke')
|
|
@@ -93,8 +93,7 @@ class KS:
|
|
|
|
|
|
else:
|
|
|
Feishu.bot(mark, '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', name)
|
|
|
- time.sleep(900)
|
|
|
- continue
|
|
|
+ return list
|
|
|
elif len(response.json()["data"]["visionProfilePhotoList"]["feeds"]) == 0:
|
|
|
if name == '快手品类账号':
|
|
|
Feishu.bot("wangxueke", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', 'wangxueke')
|
|
@@ -102,8 +101,7 @@ class KS:
|
|
|
|
|
|
else:
|
|
|
Feishu.bot(mark, '机器自动改造消息通知', f'快手-{name}cookie使用频繁无法获取到数据,请及时更换', name)
|
|
|
- time.sleep(900)
|
|
|
- continue
|
|
|
+ return list
|
|
|
pcursor = response.json()['data']['visionProfilePhotoList']['pcursor']
|
|
|
feeds = response.json()['data']['visionProfilePhotoList']['feeds']
|
|
|
|
|
@@ -160,6 +158,8 @@ class KS:
|
|
|
return list
|
|
|
except Exception as exc:
|
|
|
Common.logger("ks").warning(f"{name}的快手获取数据失败:{exc}\n")
|
|
|
+ # Feishu.bot("wangxueke", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', 'wangxueke')
|
|
|
+ # Feishu.bot("liuzhaoheng", '机器自动改造消息通知', f'快手-{name}cookie过期,请及时更换', '刘兆恒')
|
|
|
return list
|
|
|
return list
|
|
|
|