소스 검색

抖音优化

zhangyong 11 달 전
부모
커밋
a0975e8033
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      data_channel/douyin.py

+ 1 - 4
data_channel/douyin.py

@@ -54,11 +54,8 @@ class DY:
             next_cursor = str(obj.get('max_cursor')) if has_more else None
             data = obj.get('aweme_list', [])
             if data == [] and len(data) == 0:
-                return list
-            if not data[0].get('search_impr').get('entity_type'):
                 Feishu.bot(mark, '机器自动改造消息通知', f'抖音cookie过期,请及时更换', name)
-                time.sleep(900)
-                continue
+                return list
             response.close()
             for i in range(len(data)):
                 entity_type = data[i].get('search_impr').get('entity_type')