xtn-tools-pro 1.0.0.1.6__tar.gz → 1.0.0.1.8__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.6/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.1.8}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/setup.py +1 -1
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/db/RedisDB.py +8 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/proxy/XiaoXiangProxy.py +10 -10
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/LICENSE +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/README.md +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/setup.cfg +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/db/MongoDB.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/db/MysqlDB.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/db/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/proxy/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/proxy/proxy.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/tools.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/crypto.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/file_utils.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/helpers.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/log.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/retry.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/sql.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro/utils/time_utils.py +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro.egg-info/requires.txt +0 -0
- {xtn-tools-pro-1.0.0.1.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro.egg-info/top_level.txt +0 -0
@@ -113,6 +113,14 @@ class RedisDBPro:
|
|
113
113
|
else:
|
114
114
|
return self._redis.sadd(table, values)
|
115
115
|
|
116
|
+
def spop(self, table):
|
117
|
+
"""
|
118
|
+
从集合中弹出元素
|
119
|
+
:param table:
|
120
|
+
:return:
|
121
|
+
"""
|
122
|
+
return self._redis.spop(table)
|
123
|
+
|
116
124
|
def incr(self, key):
|
117
125
|
"""
|
118
126
|
对一个键的值进行自增操作
|
@@ -168,16 +168,16 @@ class ProxyPool:
|
|
168
168
|
self.__get_api_proxy()
|
169
169
|
time.sleep(1)
|
170
170
|
# 判断时间是否超过当前23:59分时间戳
|
171
|
-
t_a = get_time_now_timestamp(is_time_10=True)
|
172
|
-
if t_a >= self.__now_day59_timestamp:
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
171
|
+
# t_a = get_time_now_timestamp(is_time_10=True)
|
172
|
+
# if t_a >= self.__now_day59_timestamp:
|
173
|
+
# self.__log(
|
174
|
+
# "时间23:59,结束循环,{t} {a} {a_v} {b} {b_v}".format(t=int(time.time()),
|
175
|
+
# a=type(t_a),
|
176
|
+
# a_v=t_a,
|
177
|
+
# b=type(self.__now_day59_timestamp),
|
178
|
+
# b_v=self.__now_day59_timestamp)
|
179
|
+
# )
|
180
|
+
# break
|
181
181
|
except Exception as eee:
|
182
182
|
self.__log("程序异常报错:{eee} {b_t} {b_v}".format(eee=eee,
|
183
183
|
b_t=type(self.__now_day59_timestamp),
|
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.6 → xtn-tools-pro-1.0.0.1.8}/xtn_tools_pro.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|