xtn-tools-pro 1.0.0.1.3__py3-none-any.whl → 1.0.0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xtn_tools_pro/proxy/XiaoXiangProxy.py +5 -2
- {xtn_tools_pro-1.0.0.1.3.dist-info → xtn_tools_pro-1.0.0.1.5.dist-info}/METADATA +1 -1
- {xtn_tools_pro-1.0.0.1.3.dist-info → xtn_tools_pro-1.0.0.1.5.dist-info}/RECORD +6 -6
- {xtn_tools_pro-1.0.0.1.3.dist-info → xtn_tools_pro-1.0.0.1.5.dist-info}/LICENSE +0 -0
- {xtn_tools_pro-1.0.0.1.3.dist-info → xtn_tools_pro-1.0.0.1.5.dist-info}/WHEEL +0 -0
- {xtn_tools_pro-1.0.0.1.3.dist-info → xtn_tools_pro-1.0.0.1.5.dist-info}/top_level.txt +0 -0
@@ -74,7 +74,7 @@ class ProxyPool:
|
|
74
74
|
# 获取时间
|
75
75
|
time_out = proxy_val.split(":")[-1]
|
76
76
|
# 获取使用次数
|
77
|
-
proxy_val_count = self.__redis_pool.get(proxy_val)
|
77
|
+
proxy_val_count = int(self.__redis_pool.get(proxy_val))
|
78
78
|
if int(time_out) + self.__usage_time < get_time_now_timestamp(is_time_10=True):
|
79
79
|
del_state = self.__redis_pool.delete(proxy_val)
|
80
80
|
self.__log(
|
@@ -174,7 +174,10 @@ class ProxyPool:
|
|
174
174
|
)
|
175
175
|
break
|
176
176
|
except Exception as eee:
|
177
|
-
self.__log("程序异常报错:{eee}".format(eee=eee
|
177
|
+
self.__log("程序异常报错:{eee} {b_t} {b_v}".format(eee=eee,
|
178
|
+
b_t=type(self.__now_day59_timestamp),
|
179
|
+
b_v=self.__now_day59_timestamp))
|
180
|
+
self.__check_proxy()
|
178
181
|
# self.__del__()
|
179
182
|
|
180
183
|
def get_proxy(self):
|
@@ -6,7 +6,7 @@ xtn_tools_pro/db/MongoDB.py,sha256=zQLfZ-mhZWCFgY3dPF3dRAzAR3C8hrXO_yLZw9cUUUY,5
|
|
6
6
|
xtn_tools_pro/db/MysqlDB.py,sha256=SBJrcjbZdxmtTKPGwl57NthPhs4uX8J3P6o_rK01O4k,13373
|
7
7
|
xtn_tools_pro/db/RedisDB.py,sha256=ep32Yj8AAkUHRshSBhKsdl06UwO7Z-gQJLaezspVRKw,6053
|
8
8
|
xtn_tools_pro/db/__init__.py,sha256=Zg91UWS02TO0Ba_0AY56s0oabRy93xLNFkpIIL_6mMM,416
|
9
|
-
xtn_tools_pro/proxy/XiaoXiangProxy.py,sha256=
|
9
|
+
xtn_tools_pro/proxy/XiaoXiangProxy.py,sha256=XvjL8AgX8kMnV15KB2tGkmgpyrwNVX4N_xFPiCnSqBY,10969
|
10
10
|
xtn_tools_pro/proxy/__init__.py,sha256=WRwh6s2lruMu5buh0ejo9EK54kWT_VQhCsFGNFAmcyo,418
|
11
11
|
xtn_tools_pro/proxy/proxy.py,sha256=No6E1pFY5yx2F4976pXPrLtq-QEVp79KupzcufjSN58,8703
|
12
12
|
xtn_tools_pro/utils/__init__.py,sha256=I1_n_NP23F2lBqlF4EOlnOdLYxM8M4pbn63UhJN1hRE,418
|
@@ -17,8 +17,8 @@ xtn_tools_pro/utils/log.py,sha256=8CRMiY7Q9LWGJLhfL0YfpANBwLets9f2qWfMOe5PpNM,81
|
|
17
17
|
xtn_tools_pro/utils/retry.py,sha256=0wjHsR5DBBKpv4naMfxiky8kprrZes4WURIfFQ4H708,1657
|
18
18
|
xtn_tools_pro/utils/sql.py,sha256=EAKzbkZP7Q09j15Gm6o0_uq0qgQmcCQT6EAawbpp4v0,6263
|
19
19
|
xtn_tools_pro/utils/time_utils.py,sha256=TUtzG61PeVYXhaQd6pBrXAdlz7tBispNIRQRcGhE2No,4859
|
20
|
-
xtn_tools_pro-1.0.0.1.
|
21
|
-
xtn_tools_pro-1.0.0.1.
|
22
|
-
xtn_tools_pro-1.0.0.1.
|
23
|
-
xtn_tools_pro-1.0.0.1.
|
24
|
-
xtn_tools_pro-1.0.0.1.
|
20
|
+
xtn_tools_pro-1.0.0.1.5.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
+
xtn_tools_pro-1.0.0.1.5.dist-info/METADATA,sha256=Uw7hPes_HFvvNhvQZ7WAN6sV_8i40t-PDgWtQMaCiOk,431
|
22
|
+
xtn_tools_pro-1.0.0.1.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
23
|
+
xtn_tools_pro-1.0.0.1.5.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
|
24
|
+
xtn_tools_pro-1.0.0.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|