|
@@ -16,10 +16,10 @@ from bs4 import BeautifulSoup
|
|
|
from selenium.common.exceptions import NoSuchElementException
|
|
|
from selenium.webdriver.common.by import By
|
|
|
|
|
|
-from application.common import MysqlHelper, Feishu
|
|
|
|
|
|
sys.path.append(os.getcwd())
|
|
|
|
|
|
+from application.common import MysqlHelper, Feishu
|
|
|
|
|
|
|
|
|
class XiaoNianGaoZH(object):
|
|
@@ -28,18 +28,9 @@ class XiaoNianGaoZH(object):
|
|
|
"""
|
|
|
|
|
|
def __init__(self):
|
|
|
- mid = 1160417293
|
|
|
- current_time = datetime.now()
|
|
|
- formatted_time = current_time.strftime("%Y%m%d")
|
|
|
- date_int = int(formatted_time)
|
|
|
- # 获取时间标签
|
|
|
- tag_id = self.get_tag_id(date_int)
|
|
|
- print(tag_id)
|
|
|
- # 新增账号
|
|
|
- pq_uid = self.insert_number(mid, tag_id)
|
|
|
self.count = 0
|
|
|
self.swipe_count = 0
|
|
|
- chromedriverExecutable = "/Users/tzld/Downloads/chromedriver-mac-x64/chromedriver"
|
|
|
+ chromedriverExecutable = "/Users/a123456/Downloads/chromedriver-mac-x64/chromedriver"
|
|
|
print("启动微信")
|
|
|
# 微信的配置文件
|
|
|
caps = {
|