瀏覽代碼

抖音优化

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')