xtn-tools-pro 1.0.0.1.0__tar.gz → 1.0.0.1.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. {xtn-tools-pro-1.0.0.1.0/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.1.1}/PKG-INFO +1 -1
  2. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/setup.py +1 -1
  3. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/proxy/XiaoXiangProxy.py +22 -20
  4. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
  5. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/LICENSE +0 -0
  6. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/README.md +0 -0
  7. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/setup.cfg +0 -0
  8. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/__init__.py +0 -0
  9. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/db/MongoDB.py +0 -0
  10. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/db/MysqlDB.py +0 -0
  11. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/db/RedisDB.py +0 -0
  12. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/db/__init__.py +0 -0
  13. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/proxy/__init__.py +0 -0
  14. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/proxy/proxy.py +0 -0
  15. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/tools.py +0 -0
  16. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/__init__.py +0 -0
  17. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/crypto.py +0 -0
  18. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/file_utils.py +0 -0
  19. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/helpers.py +0 -0
  20. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/log.py +0 -0
  21. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/retry.py +0 -0
  22. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/sql.py +0 -0
  23. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro/utils/time_utils.py +0 -0
  24. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
  25. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
  26. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro.egg-info/requires.txt +0 -0
  27. {xtn-tools-pro-1.0.0.1.0 → xtn-tools-pro-1.0.0.1.1}/xtn_tools_pro.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.1.0
3
+ Version: 1.0.0.1.1
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@163.com
@@ -15,7 +15,7 @@ with open("README.md", "r") as f:
15
15
 
16
16
  setuptools.setup(
17
17
  name="xtn-tools-pro", # 模块名称
18
- version="1.0.0.1.0", # 版本
18
+ version="1.0.0.1.1", # 版本
19
19
  author="xtn", # 作者
20
20
  author_email="czw011122@163.com", # 作者邮箱
21
21
  description="xtn 开发工具", # 模块简介
@@ -151,23 +151,24 @@ class ProxyPool:
151
151
  self.__log("获取小象代理报错:{e}".format(e=e))
152
152
 
153
153
  def run(self):
154
- try:
155
- # 手动绑定终端IP
156
- response = requests.get(url=self.__XiaoXiangAutoBinding, verify=False, timeout=3)
157
- self.__log(response.text)
158
- while True:
159
- # 检查代理
160
- self.__check_proxy()
161
- # 获取小象代理
162
- self.__get_api_proxy()
163
- time.sleep(1)
164
- # 判断时间是否超过当前23:59分时间戳
165
- if get_time_now_timestamp(is_time_10=True) >= self.__now_day59_timestamp:
166
- self.__log("时间23:59,结束循环,{t}".format(t=int(time.time())))
167
- break
168
- except Exception as eee:
169
- self.__log("程序异常报错:{eee}".format(eee=eee))
170
- # self.__del__()
154
+ while True:
155
+ try:
156
+ # 手动绑定终端IP
157
+ response = requests.get(url=self.__XiaoXiangAutoBinding, verify=False, timeout=3)
158
+ self.__log(response.text)
159
+ while True:
160
+ # 检查代理
161
+ self.__check_proxy()
162
+ # 获取小象代理
163
+ self.__get_api_proxy()
164
+ time.sleep(1)
165
+ # 判断时间是否超过当前23:59分时间戳
166
+ if get_time_now_timestamp(is_time_10=True) >= self.__now_day59_timestamp:
167
+ self.__log("时间23:59,结束循环,{t}".format(t=int(time.time())))
168
+ break
169
+ except Exception as eee:
170
+ self.__log("程序异常报错:{eee}".format(eee=eee))
171
+ # self.__del__()
171
172
 
172
173
  def get_proxy(self):
173
174
  """
@@ -206,6 +207,7 @@ class ProxyPool:
206
207
 
207
208
 
208
209
  if __name__ == '__main__':
209
- p = ProxyPool(ip="127.0.0.1", port=6379, db=0, user_pass="xtn-kk", XiaoXiangProxyAppKey="1101384562594172928",
210
- XiaoXiangProxyAppSecret="PJ0QBWML")
211
- print(p.set_proxy_error("http://49.83.105.188:32300"))
210
+ p = ProxyPool(ip="127.0.0.1", port=6379, db=0, user_pass="xtn-kk", XiaoXiangProxyAppKey="1107231349661913088",
211
+ XiaoXiangProxyAppSecret="8kignGIX")
212
+ # print(p.set_proxy_error("http://49.83.105.188:32300"))
213
+ p.run()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.1.0
3
+ Version: 1.0.0.1.1
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@163.com