Parcourir la source

2024-06-04
取消微信搜索接口服务

罗俊辉 il y a 1 an
Parent
commit
d20ddb3b64
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      applications/search/hksp_search.py

+ 2 - 2
applications/search/hksp_search.py

@@ -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: