2 Commits c9e2ef16b5 ... 9d5960cf24

Autor SHA1 Mensaje Fecha
  xubo 9d5960cf24 redis 取值出现了bug hace 1 año
  xubo f07ab365e4 redis 取值出现了bug hace 1 año

BIN
__pycache__/app.cpython-311.pyc


+ 8 - 5
app.py

@@ -659,9 +659,10 @@ def process_running_manual(max_threads, pocket_url):
 
         threads = []
         for account in account_list:
-            # single_proxy = get_proxy_from_file("proxy_list.txt")
+            single_proxy = get_proxy_from_file("proxy_list.txt")
             # 从redis 中获取 proxy_ip
-            single_proxy = redis_client.get(f'proxy_ip_{account}')
+            # key = f'proxy_ip_{account}'
+            # single_proxy = redis_client.get(key)
             print(f"当前账号: {account}, 当前代理:{single_proxy}")
             loggerKit.info(f"当前账号: {account}, 当前代理:{single_proxy}")
 
@@ -744,11 +745,11 @@ def run_threading_order(max_threads, account_path, url):
 
             threads = []
             for account in account_list:
-                # single_proxy = get_proxy_from_file("proxy_list.txt")
+                single_proxy = get_proxy_from_file("proxy_list.txt")
                 # 从redis 中获取 proxy_ip
-                single_proxy = redis_client.get(f'proxy_ip_{account}')
+                # single_proxy = redis_client.get(f'proxy_ip_{account}')
 
-                print(f"当前账号: {account}, 当前代理:{single_proxy}")
+                print(f"当前key: proxy_ip_{account}, 当前代理:{single_proxy}")
                 loggerKit.info(f"当前账号: {account}, 当前代理:{single_proxy}")
 
                 thread = threading.Thread(target=get_ticket_order,
@@ -756,6 +757,8 @@ def run_threading_order(max_threads, account_path, url):
                 threads.append(thread)
                 thread.start()
 
+                print(f"single_proxy is None, 当前账号: {account}, key: proxy_ip_{account}")
+
                 # 如果当前线程数达到上限,等待有线程结束后再创建新线程
                 if len(threads) == max_threads:
                     for t in threads:

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1625 - 0
logs/spider-terminal_2024-07-02.log


+ 3 - 3
main.py

@@ -16,7 +16,7 @@ from app import login_account, run_threading_order, run_daily_job, run_manual_jo
 from litter_helper import Ui_menu  # 确保这个导入路径是正确的
 from tools.utils import save_all_proxy_ip_v3
 
-import winreg
+# import winreg
 
 from pathlib import Path
 
@@ -324,8 +324,8 @@ class MainWindow(QMainWindow, Ui_menu):
         if system == "Windows":
             # 检查 Redis 服务是否正在运行
             try:
-                key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SYSTEM\CurrentControlSet\Services\Redis")
-                winreg.CloseKey(key)
+                # key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SYSTEM\CurrentControlSet\Services\Redis")
+                # winreg.CloseKey(key)
                 print("Redis 服务已安装并正在运行")
                 return
             except FileNotFoundError as ex:

+ 4 - 0
poc.py

@@ -0,0 +1,4 @@
+from tools import redis_client
+
+if __name__ == '__main__':
+    print(redis_client.get(f'proxy_ip_snastoueos26@huatcn.com'))

+ 48 - 0
results/2024-07-02.txt

@@ -0,0 +1,48 @@
+login account:mq693@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:28968, token: Bjd9tybz3fzdFkUa06hb9mdns2lMqZy0BCm3ttX8 登录成功!!!
+login account:4l965@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:29781, token: XQ67IFDnZiTAwuaF5xWF8jKppUrTcbmgnVtp3TMb 登录成功!!!
+login account:7k6o2@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21628, token: H8k3laqE51hXzhhaCWHqaDagUCHJM7ON7tR9QCO8 登录成功!!!
+login account:576h0@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27820, token: vfgRoY8dHex8EFT86DCbuQzDcRHu3ZMkSLuH5ooz 登录成功!!!
+login account:7441188@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27970, token: cVHOu5l8xAnJ0Dm08e27OVauDpiABEul5E0QBNqF 登录成功!!!
+login account:piaop@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:23243, token: echrlxw8JFgGx6bAMq6ONYHMLBGzCPkXs9LxmWV6 登录成功!!!
+login account:26e4b@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:23623, token: lCLBUxHa7wx1Wjd6rELUMcvSkiMBdwlzEQhwoi3y 登录成功!!!
+login account:68r90@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27957, token: n8DHezfaKtqGj8236CF89LkjhwIGZKiwNjK2zXlB 登录成功!!!
+login account:b73cd@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:26691, token: NvNN9dwvcxGRpgn5o8vup9RIbZigsQwCyzaoiURV 登录成功!!!
+login account:zhnggg@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:22521, token: JsTnOvCuM7eejdjI1izo06AbwwI1WvZzg9YqEPUG 登录成功!!!
+login account:aokimomo@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27720, token: W4Ona35z8AZuCDTVuIoYyUNLGJ89cyazrBQ55aYp 登录成功!!!
+login account:teerwrw@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21783, token: IVQju2QSx8vqerCAFxWKwpLDSN8OHvMXs2FNH4E6 登录成功!!!
+login account:g926m@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:24202, token: w715hgiiocPA0KpUeXDw5lxrAS3wv2OvlgFTm06f 登录成功!!!
+login account:samatsueils28@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27410, token: nPbWld1kkjiL2MlkgpgZawiL2Oc8OqUrLT5gK606 登录成功!!!
+login account:896h2@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:20378, token: SPPgVK8Edx2QgI1Di3J2zRsEgvY6TUYVcjigB3MW 登录成功!!!
+login account:wang@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:22364, token: MAC8QFcR2DVaB9Af9bpa9Z9kTuVKB3IZm30eU4Zp 登录成功!!!
+login account:sa8721s18@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:23992, token: zttary9413j7h4z3qZw8yd2YsDrvFV6Tm3D0rRlN 登录成功!!!
+login account:118k@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:22230, token: HLxYwJvB4h9nuQSRqc7BCxPotwwgQtKymY2oD87j 登录成功!!!
+login account:masatoriyos37@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:23519, token: i2yBQCL7U08v9Lp3sSXmepmt8vsQtJzLCwbjZybf 登录成功!!!
+login account:wi719@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:25087, token: jAj8WCX7tA5I6C2OT0XPzMh6C9FbaEObvXsQ7Gwe 登录成功!!!
+login account:119k@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21426, token: KPWnz50irTb01JJ1V5OHuHLFNPxEuACq8CPbNrJA 登录成功!!!
+login account:sato443jh2@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27102, token: gIhb85nHkX7LEK2o4h7L65LED0mL0V5O8TmpEkDD 登录成功!!!
+login account:s4817yos7@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:26227, token: iGEqvgBZ7kwjivnFFEf9E51QzVPLP4bYVT56nKpu 登录成功!!!
+login account:116k@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21685, token: r0DjUeMfJ4BVe5UhMlzcre663KiGQQTdxdO9gzkN 登录成功!!!
+login account:yos34@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:29833, token: Pe8oYfUT3jt0dld8lrVRQ5waZlbuqLGxsR06gCPS 登录成功!!!
+login account:876h1@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:25881, token: xZFmSzFpzeVD4Q8sCRGoWMO55lYDYNnUWuoCVUOp 登录成功!!!
+login account:9441193@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:28506, token: sDqF1QFzRjvjRozZDfP1qbMZF3ymMM6xB8aKsjZg 登录成功!!!
+login account:yoshinobuyos39@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27109, token: zd00MqLHFff5BYxIIr3Ssae4lUw7zV3aQ3xHvtQ0 登录成功!!!
+login account:satmisauos25@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:22716, token: EEC0BZFdft0b9Gvbph6F00nl72cRe8rG3EJcBL3G 登录成功!!!
+login account:115k@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:25726, token: H3IetT1dmxmKN54P0urcBtwjcIg0BnBDtVklFEL2 登录成功!!!
+login account:82y9o@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:23966, token: KzI9X3D4olyeUXVUePoTmyVtEDNv3mpBKZWOYfLi 登录成功!!!
+login account:117k@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:27778, token: tm2dibRj6F2NWawk7USYOY2LgEYZ5kJ15BLu1945 登录成功!!!
+login account:1086a@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:26607, token: tRAdI80C3xqRb3fK6Zt6oG3HcynaG5HjRL85uQej 登录成功!!!
+login account:sanmieyos27@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:25328, token: tSkLbQoIfCKzEtPQ5lzRH8FTMwyflPH7EIo9TMh9 登录成功!!!
+login account:aoki@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21999, token: OHobvBP5U2RA0500EFTw0H0LMPDA4MNwQsviIvji 登录成功!!!
+login account:676h0@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:29715, token: QwFxJP4XzY1FDpAF9jebdQKkLBP23WsZUmyX8zLh 登录成功!!!
+login account:snastoueos26@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:24281, token: PWtLDBs54e8VkXQ4Ve2OqOUTsmWHcN44GBgPQoLm 登录成功!!!
+login account:0482z@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:20835, token: KrgUE7r721ztzw3n7oHz7EUXWWqrdoJEFw6skrqd 登录成功!!!
+login account:sa853yos16@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:20696, token: eNeqqC6nvuFfReXjPPSuePOumMOp9YfVoBta918e 登录成功!!!
+login account:wang4@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:20106, token: l1rxEb2G2CEYPsbURE6LkVBELbVnCnGs95kL8xNX 登录成功!!!
+login account:61f35@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:29714, token: jGNfA1lcNXX3XVbA4kL3hwJxUOCRa45utCohwyKT 登录成功!!!
+login account:hua1111@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:22560, token: LNOE5xkZJiSW1fZoO1hnVHGmXb3PZQgXVpoKJBUJ 登录成功!!!
+login account:zzzzdf@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:29912, token: TAJKwY2XRPeizYyjXppyixgpMAXpkoCkp2hI1tmy 登录成功!!!
+login account:nagoziyos38@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:26879, token: cQh5ezOTHovrt7nwtnm4K4J17Bp7wlV1mQ7oirT1 登录成功!!!
+login account:nylo0@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:21752, token: EiWxZM1j4JCllpjiRUG7eMFfRcTNYuVFctq8PsB8 登录成功!!!
+login account:r1xlk@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:24417, token: qNtiV2ySvTkgLANlg6Jgrog1xJh6QWVUsZr1qRx4 登录成功!!!
+login account:satoys9@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:24559, token: xXgXPWVdy9H3oJPOpjJNCWpslbGI3BmtAr8Er4GC 登录成功!!!
+login account:o4qzc@huatcn.com, 代理IP:spnelh8q2c:panyue6411802~@gate.dc.visitxiangtan.com:20525, token: TnDAi4DTdfVO1iOqQFCG9pMsI0mLIucAjoXEoNBc 登录成功!!!

BIN
tools/__pycache__/redis_util.cpython-311.pyc


BIN
tools/__pycache__/utils.cpython-311.pyc


+ 1 - 1
tools/redis_util.py

@@ -13,7 +13,7 @@ class redis_util(object):
         self.__redis = redis_pool.redis_pool.get_conn()
 
     # 设置key-value
-    def set(self, key, value, timeout=24 * 60 * 60):
+    def set(self, key, value, timeout=1 * 60 * 60):
         self.__redis.set(key, value)
         # key超时时间
         self.__redis.expire(name=key, time=timeout)

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio