Browse Source

2024-05-13
多平台搜索上线(微信, 百度, 西瓜)
弃用 search_keys, theme
搜索结果过pq敏感词策略

罗俊辉 1 year ago
parent
commit
d491f481ba
1 changed files with 4 additions and 1 deletions
  1. 4 1
      applications/search/hksp_search.py

+ 4 - 1
applications/search/hksp_search.py

@@ -89,6 +89,8 @@ def hksp_search(key):
     }
     # 发送GET请求
     response = requests.get(url, headers=headers, params=params).json()
+    print("baidu")
+    print(response)
     try:
         data_list = response['data']['list']
         L = []
@@ -100,7 +102,8 @@ def hksp_search(key):
                     L.append(res)
                 else:
                     continue
-            except:
+            except Exception as e:
+                print(e)
                 pass
         return L
     except: