|
@@ -95,8 +95,7 @@ def hksp_search(key, sensitive_words):
|
|
|
headers=headers,
|
|
|
params=params,
|
|
|
proxies=tunnel_proxies(),
|
|
|
- timeout=30,
|
|
|
- verify=False,
|
|
|
+ timeout=30
|
|
|
|
|
|
).json()
|
|
|
try:
|
|
@@ -110,6 +109,7 @@ def hksp_search(key, sensitive_words):
|
|
|
if sensitive_flag(sensitive_words, title) and int(duration) <= 300:
|
|
|
res = get_video_detail(video_id)
|
|
|
L.append(res)
|
|
|
+ return L
|
|
|
else:
|
|
|
continue
|
|
|
except Exception as e:
|