wangkun há 2 anos atrás
pai
commit
80f2b932de
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      xigua/xigua_search/xigua_search.py

+ 2 - 0
xigua/xigua_search/xigua_search.py

@@ -660,8 +660,10 @@ class XiguaSearch:
             }
             try:
                 res = requests.request("GET", url, headers=headers, proxies=Common.tunnel_proxies())
+                Common.logger(log_type, crawler).info(f"get_videolist:{res.json()}\n")
                 search_list = res.json()['data']['data']
             except Exception as e:
+                Common.logger(log_type, crawler).warning(f"get_videolist:{e}\n")
                 continue
             if not search_list:
                 Common.logger(log_type, crawler).error(f'关键词:{search_word},没有获取到视频列表:offset{offset}')