|
@@ -652,9 +652,9 @@ class Search:
|
|
res = requests.request("GET", url, headers=headers, proxies=Common.tunnel_proxies())
|
|
res = requests.request("GET", url, headers=headers, proxies=Common.tunnel_proxies())
|
|
search_list = res.json()['data']['data']
|
|
search_list = res.json()['data']['data']
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- Common.logger(log_type, crawler).error(f'关键词:{search_word},没有获取到视频列表:offset{offset}')
|
|
|
|
- search_list = []
|
|
|
|
|
|
+ continue
|
|
if not search_list:
|
|
if not search_list:
|
|
|
|
+ Common.logger(log_type, crawler).error(f'关键词:{search_word},没有获取到视频列表:offset{offset}')
|
|
return
|
|
return
|
|
for video_info in search_list:
|
|
for video_info in search_list:
|
|
v_type = video_info['type']
|
|
v_type = video_info['type']
|