xtn-tools-pro 1.0.0.1.3__tar.gz → 1.0.0.1.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xtn-tools-pro-1.0.0.1.3/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.1.5}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/setup.py +1 -1
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/proxy/XiaoXiangProxy.py +5 -2
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/LICENSE +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/README.md +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/setup.cfg +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/db/MongoDB.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/db/MysqlDB.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/db/RedisDB.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/db/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/proxy/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/proxy/proxy.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/tools.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/crypto.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/file_utils.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/helpers.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/log.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/retry.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/sql.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro/utils/time_utils.py +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro.egg-info/requires.txt +0 -0
- {xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro.egg-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):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{xtn-tools-pro-1.0.0.1.3 → xtn-tools-pro-1.0.0.1.5}/xtn_tools_pro.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|