xtn-tools-pro 1.0.0.1.5__py3-none-any.whl → 1.0.0.1.6__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.
@@ -55,6 +55,8 @@ class ProxyPool:
55
55
  # nowDate = str(datetime.datetime.now().strftime('%Y_%m_%d'))
56
56
  # logger.add(loggerPath.format(t=nowDate))
57
57
 
58
+ self.bind_ip()
59
+
58
60
  def __log(self, text):
59
61
  """
60
62
  记录日志
@@ -150,12 +152,15 @@ class ProxyPool:
150
152
  except Exception as e:
151
153
  self.__log("获取小象代理报错:{e}".format(e=e))
152
154
 
155
+ def bind_ip(self):
156
+ # 手动绑定终端IP
157
+ response = requests.get(url=self.__XiaoXiangAutoBinding, verify=False, timeout=3)
158
+ self.__log(response.text)
159
+
153
160
  def run(self):
154
161
  while True:
155
162
  try:
156
- # 手动绑定终端IP
157
- response = requests.get(url=self.__XiaoXiangAutoBinding, verify=False, timeout=3)
158
- self.__log(response.text)
163
+ self.bind_ip()
159
164
  while True:
160
165
  # 检查代理
161
166
  self.__check_proxy()
@@ -122,5 +122,9 @@ def get_build_url_with_params(url, params):
122
122
  full_url = url + "?" + encoded_params
123
123
  return full_url
124
124
 
125
+
126
+
125
127
  if __name__ == '__main__':
126
- print(get_uuid(4))
128
+ # print(get_uuid(4))
129
+ from faker import Faker
130
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.1.5
3
+ Version: 1.0.0.1.6
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@163.com
@@ -14,5 +14,6 @@ Requires-Dist: pymysql
14
14
  Requires-Dist: dbutils
15
15
  Requires-Dist: colorlog
16
16
  Requires-Dist: requests
17
+ Requires-Dist: Faker
17
18
 
18
19
  xtnkk-tools
@@ -6,19 +6,19 @@ 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=XvjL8AgX8kMnV15KB2tGkmgpyrwNVX4N_xFPiCnSqBY,10969
9
+ xtn_tools_pro/proxy/XiaoXiangProxy.py,sha256=jrkXN8mI45jEQG4je5Pa-M1e896No7AQCjFCnoVqP0A,11029
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
13
13
  xtn_tools_pro/utils/crypto.py,sha256=RZ5AET4udlraACWMeNF-17JiZ2R6Ahb47_j4tjkV7LE,3190
14
14
  xtn_tools_pro/utils/file_utils.py,sha256=4Bmb1ISxqQC-7doPXDyY2o-H0m4upj_-hlLrO36sKJg,1509
15
- xtn_tools_pro/utils/helpers.py,sha256=VzevgDk0tZAxFmuFlMBIaJ3QyiFxp5Qg-mLPgE83jRI,3773
15
+ xtn_tools_pro/utils/helpers.py,sha256=eHhvhcw_jcUhCA6HwOqpD4XU_V_ZoHDgj3qtLR8yzx8,3812
16
16
  xtn_tools_pro/utils/log.py,sha256=8CRMiY7Q9LWGJLhfL0YfpANBwLets9f2qWfMOe5PpNM,8139
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.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,,
20
+ xtn_tools_pro-1.0.0.1.6.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ xtn_tools_pro-1.0.0.1.6.dist-info/METADATA,sha256=-105u2_ReXldovsvWvumjALgYxt9nEoafj1yvFYScyQ,453
22
+ xtn_tools_pro-1.0.0.1.6.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
23
+ xtn_tools_pro-1.0.0.1.6.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
24
+ xtn_tools_pro-1.0.0.1.6.dist-info/RECORD,,