This commit is contained in:
Administrator
2025-11-25 13:34:39 +08:00
parent 3cdddf154d
commit 4325dca74b
2 changed files with 38 additions and 37 deletions

View File

@@ -86,24 +86,24 @@ class WeexTransaction:
def send_dingtalk_message(self, message_content):
# pass
pass
url = "http://8.137.99.82:9005/api/send_click?token=fegergauiernguie&phone=8613661496481"
res = requests.post(
url=url,
json={
"phone": "8613661496481",
"bot_name": "ergggreef",
"datas": [
{"send_message": [message_content], "click_button": [""], },
]
}
)
print(res.json())
# url = "http://8.137.99.82:9005/api/send_click?token=fegergauiernguie&phone=8613661496481"
#
# res = requests.post(
# url=url,
# json={
# "phone": "8613661496481",
# "bot_name": "ergggreef",
# "datas": [
# {"send_message": [message_content], "click_button": [""], },
# ]
#
# }
# )
#
# print(res.json())
def openBrowser(self, ): # 直接指定ID打开窗口也可以使用 createBrowser 方法返回的ID

View File

@@ -440,23 +440,23 @@ class Hub_Web:
i.close()
if self.login_x_main():
self.xstart_info.start = 1
self.xstart_info.save()
logger.success(f"推特名字:{self.x_info.user_name}登录x成功")
# time.sleep(25)
#
# for i in self.x_tab.cookies():
# if i["name"] == "auth_token":
# self.xstart_info.cookie = i["value"]
# self.xstart_info.save()
else:
logger.error(f"推特名字:{self.x_info.user_name}登录x失败")
self.xstart_info.start = 0
self.xstart_info.save()
# if self.login_x_main():
# self.xstart_info.start = 1
# self.xstart_info.save()
#
# logger.success(f"推特名字:{self.x_info.user_name}登录x成功")
#
# # time.sleep(25)
# #
# # for i in self.x_tab.cookies():
# # if i["name"] == "auth_token":
# # self.xstart_info.cookie = i["value"]
# # self.xstart_info.save()
#
# else:
# logger.error(f"推特名字:{self.x_info.user_name}登录x失败")
# self.xstart_info.start = 0
# self.xstart_info.save()
# try:
# self.soon_action()
@@ -487,8 +487,9 @@ class Hub_Web:
# 养号流程
try:
self.account_nurturing()
except:
pass
except Exception as e:
print(e)
self.page.quit()
@@ -496,8 +497,8 @@ class Hub_Web:
if __name__ == '__main__':
# 同时运行
max_threads = 15
delay_between_start = 484 # 每次启动线程之间的延迟时间(秒)
max_threads = 1
delay_between_start = 15 # 每次启动线程之间的延迟时间(秒)
with ThreadPoolExecutor(max_workers=max_threads) as executor: