فهرست منبع

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

罗俊辉 1 سال پیش
والد
کامیت
6bec19bef7
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      applications/routes.py
  2. 1 1
      applications/search/xigua_search.py

+ 1 - 1
applications/routes.py

@@ -35,7 +35,7 @@ async def search_videos_from_the_web():
     :return:
     """
     params = await request.get_json()
-    title = params['title'].replace("【非头次】", "")
+    title = params['title'].replace("【非头次】", "").replace("【头次】", "")
     gh_id = params['ghId']
     trace_id = "search-{}-{}".format(str(uuid.uuid4()), str(int(time.time())))
     params['trace_id'] = trace_id

+ 1 - 1
applications/search/xigua_search.py

@@ -218,7 +218,7 @@ def xigua_search(keyword):
                 else:
                     continue
             except Exception as e:
-                # print(e)
+                print(e)
                 continue
         return L
     else: