diff --git a/weex交易/30分钟仿盘交易.py b/weex交易/30分钟仿盘交易.py index 5d1b555..4f579c0 100644 --- a/weex交易/30分钟仿盘交易.py +++ b/weex交易/30分钟仿盘交易.py @@ -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 diff --git a/推特/main.py b/推特/main.py index 8560e6f..595131e 100644 --- a/推特/main.py +++ b/推特/main.py @@ -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: