xtn-tools-pro 1.0.0.3.6__tar.gz → 1.0.0.3.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. {xtn-tools-pro-1.0.0.3.6/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.3.8}/PKG-INFO +1 -1
  2. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/setup.py +1 -1
  3. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/task_pro/go_fun.py +29 -6
  4. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
  5. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/LICENSE +0 -0
  6. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/README.md +0 -0
  7. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/setup.cfg +0 -0
  8. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/__init__.py +0 -0
  9. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/db/MongoDB.py +0 -0
  10. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/db/MysqlDB.py +0 -0
  11. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/db/RedisDB.py +0 -0
  12. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/db/__init__.py +0 -0
  13. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/proxy/XiaoXiangProxy.py +0 -0
  14. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/proxy/__init__.py +0 -0
  15. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/proxy/proxy.py +0 -0
  16. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/task_pro/__init__.py +0 -0
  17. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/tools.py +0 -0
  18. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/__init__.py +0 -0
  19. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/crypto.py +0 -0
  20. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/file_utils.py +0 -0
  21. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/helpers.py +0 -0
  22. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/log.py +0 -0
  23. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/retry.py +0 -0
  24. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/sql.py +0 -0
  25. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro/utils/time_utils.py +0 -0
  26. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
  27. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
  28. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/xtn_tools_pro.egg-info/requires.txt +0 -0
  29. {xtn-tools-pro-1.0.0.3.6 → xtn-tools-pro-1.0.0.3.8}/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.3.6
3
+ Version: 1.0.0.3.8
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@gmail.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.3.6", # 版本
18
+ version="1.0.0.3.8", # 版本
19
19
  author="xtn", # 作者
20
20
  author_email="czw011122@gmail.com", # 作者邮箱
21
21
  description="xtn 开发工具", # 模块简介
@@ -35,14 +35,14 @@ class GoFun:
35
35
 
36
36
  self.__ini_info = {
37
37
  "host": host,
38
- "port": port,
38
+ "port": int(port),
39
39
  "task": task,
40
40
  "auto": auto,
41
- "processes_num": processes_num,
42
- "thread_num": thread_num,
43
- "restart_time": restart_time,
44
- "update_proxies_time": update_proxies_time,
45
- "upload_task_tine": upload_task_tine,
41
+ "processes_num": int(processes_num),
42
+ "thread_num": int(thread_num),
43
+ "restart_time": int(restart_time),
44
+ "update_proxies_time": int(update_proxies_time),
45
+ "upload_task_tine": int(upload_task_tine),
46
46
  }
47
47
 
48
48
  for server_k, server_v in self.__ini_info.items():
@@ -50,6 +50,8 @@ class GoFun:
50
50
  "update_proxies_time", "upload_task_tine"]:
51
51
  raise Exception(f"ini_dict 配置 {server_k} 不存在")
52
52
 
53
+ logger.info(f"\n当前设置配置如下:\n\t功能函数重启间隔:{restart_time};进程数:{processes_num};线程数:{thread_num}\n\t代理更新间隔:{update_proxies_time};回写间隔{upload_task_tine}\n")
54
+
53
55
  if port:
54
56
  task_host = f"http://{host}:{port}"
55
57
  else:
@@ -149,6 +151,9 @@ class GoFun:
149
151
  time.sleep(2)
150
152
  continue
151
153
  for task_item in result_list:
154
+ phone_item = task_item["phone"]
155
+ if not phone_item.isdigit(): # 判断是否全是整数(不包括小数点或负号)
156
+ continue
152
157
  download_queue.put(task_item)
153
158
  logger.info(f"成功获取任务个数:{len(result_list)}")
154
159
  except Exception as e:
@@ -308,3 +313,21 @@ class GoFun:
308
313
  # 等待所有线程完成
309
314
  for future in concurrent.futures.as_completed(futures):
310
315
  future.result()
316
+
317
+ def get_ini_dict(self):
318
+ """
319
+ 配置解释
320
+ :return:
321
+ """
322
+ ini_dict = {
323
+ "host": "域名",
324
+ "port": "端口",
325
+ "task": "任务",
326
+ "auto": "token",
327
+ "processes_num": "进程数",
328
+ "thread_num": "线程数",
329
+ "restart_time": "间隔x秒强制重启",
330
+ "update_proxies_time": "间隔x秒更新代理",
331
+ "upload_task_tine": "回写间隔",
332
+ }
333
+ return ini_dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.3.6
3
+ Version: 1.0.0.3.8
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@gmail.com