Parcourir la source

2024-07-01
标题相似度-测试服务

罗俊辉 il y a 9 mois
Parent
commit
27cc5f7f25

+ 4 - 4
applications/functions/async_etl.py

@@ -42,10 +42,10 @@ class AsyncETL(object):
         self.uid = video_obj["user_id"]
         self.uid = video_obj["user_id"]
         self.title = video_obj["video_title"]
         self.title = video_obj["video_title"]
         self.cover_url = video_obj["cover_url"]
         self.cover_url = video_obj["cover_url"]
-        self.proxy = {
-            "http://": "http://t17772369458618:5zqcjkmy@q796.kdltps.com:15818/",
-            "https://": "http://t17772369458618:5zqcjkmy@q796.kdltps.com:15818/",
-        }
+        # self.proxy = {
+        #     "http://": "http://t17772369458618:5zqcjkmy@q796.kdltps.com:15818/",
+        #     "https://": "http://t17772369458618:5zqcjkmy@q796.kdltps.com:15818/",
+        # }
         self.max_retry = 5
         self.max_retry = 5
 
 
     def request_header(self, type_="video"):
     def request_header(self, type_="video"):

+ 5 - 3
applications/search/hksp_search.py

@@ -20,10 +20,12 @@ def tunnel_proxies():
     快代理
     快代理
     :return:
     :return:
     """
     """
-    tunnel = "q796.kdltps.com:15818"
+    # 隧道域名:端口号
+    tunnel = "l901.kdltps.com:15818"
+
     # 用户名密码方式
     # 用户名密码方式
-    username = "t17772369458618"
-    password = "5zqcjkmy"
+    username = "t11983523373311"
+    password = "mtuhdr2z"
     proxies = {
     proxies = {
         "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
         "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
         "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}
         "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}

+ 6 - 3
applications/search/xigua_search.py

@@ -28,9 +28,12 @@ class XiGuaFunctions(object):
             快代理方法
             快代理方法
             :return:
             :return:
             """
             """
-        tunnel = "q796.kdltps.com:15818"
-        username = "t17772369458618"
-        password = "5zqcjkmy"
+        # 隧道域名:端口号
+        tunnel = "l901.kdltps.com:15818"
+
+        # 用户名密码方式
+        username = "t11983523373311"
+        password = "mtuhdr2z"
         proxies = {
         proxies = {
             "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
             "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
             "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}
             "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}