Functions-d 1.2.1__tar.gz → 1.2.2__tar.gz
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.
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d/Functions_d.py +1 -10
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d.egg-info/PKG-INFO +1 -1
- {functions_d-1.2.1 → functions_d-1.2.2}/PKG-INFO +1 -1
- {functions_d-1.2.1 → functions_d-1.2.2}/setup.cfg +1 -1
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d/__init__.py +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d.egg-info/SOURCES.txt +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d.egg-info/dependency_links.txt +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d.egg-info/requires.txt +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/Functions_d.egg-info/top_level.txt +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/README.md +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/pyproject.toml +0 -0
- {functions_d-1.2.1 → functions_d-1.2.2}/setup.py +0 -0
|
@@ -3,11 +3,9 @@ import datetime
|
|
|
3
3
|
import inspect
|
|
4
4
|
import json
|
|
5
5
|
import logging
|
|
6
|
-
import os
|
|
7
6
|
import shutil
|
|
8
7
|
import time
|
|
9
8
|
import urllib.request
|
|
10
|
-
import traceback
|
|
11
9
|
import pandas as pd
|
|
12
10
|
import WeComMsg
|
|
13
11
|
import xlwings as xw
|
|
@@ -20,23 +18,17 @@ import HiveClient
|
|
|
20
18
|
from PIL import ImageGrab, Image
|
|
21
19
|
from bs4 import BeautifulSoup
|
|
22
20
|
import re
|
|
23
|
-
import xlsxwriter
|
|
24
21
|
import numpy as np
|
|
25
22
|
from pypinyin import lazy_pinyin
|
|
26
23
|
from selenium import webdriver
|
|
27
|
-
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
|
28
24
|
from selenium.webdriver.edge.service import Service
|
|
29
25
|
from selenium.webdriver.edge.options import Options
|
|
30
26
|
from webdriver_manager.microsoft import EdgeChromiumDriverManager
|
|
31
|
-
import platform
|
|
32
27
|
import requests
|
|
33
28
|
import psutil
|
|
34
29
|
import pythoncom
|
|
35
30
|
from tenacity import retry, stop_after_attempt, wait_fixed
|
|
36
|
-
# import re
|
|
37
31
|
import os
|
|
38
|
-
# import pandas as pd
|
|
39
|
-
# from .HiveClient import HiveClient # 确保导入路径正确
|
|
40
32
|
|
|
41
33
|
|
|
42
34
|
class DataProcessingAndMessaging:
|
|
@@ -61,7 +53,6 @@ class DataProcessingAndMessaging:
|
|
|
61
53
|
console_handler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s'))
|
|
62
54
|
self.logger.addHandler(console_handler)
|
|
63
55
|
|
|
64
|
-
self.logger.info('\n' * 5)
|
|
65
56
|
self.logger.info("初始化 DataProcessingAndMessaging 类")
|
|
66
57
|
|
|
67
58
|
# -------------------------- 2. 主类核心参数初始化 --------------------------
|
|
@@ -154,7 +145,7 @@ class DataProcessingAndMessaging:
|
|
|
154
145
|
elapsed_time = round(end_time - self.start_time, 0)
|
|
155
146
|
print(f"运行时间:{elapsed_time} 秒")
|
|
156
147
|
self.logger.info(f"运行时间:{elapsed_time} 秒")
|
|
157
|
-
self.logger.info('\n' *
|
|
148
|
+
self.logger.info('\n' * 10)
|
|
158
149
|
|
|
159
150
|
# -------------------------- 企业微信消息发送 --------------------------
|
|
160
151
|
def uxin_wx(self, name, message, mentioned_list=None):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|