rgfewfger
This commit is contained in:
48
推特/main.py
48
推特/main.py
@@ -432,31 +432,31 @@ class Hub_Web:
|
||||
logger.error(f"推特名字:{self.x_info.user_name},浏览器打开失败")
|
||||
return
|
||||
|
||||
# time.sleep(5)
|
||||
time.sleep(5)
|
||||
|
||||
# for _, i in enumerate(self.page.get_tabs()):
|
||||
# if _ == 0:
|
||||
# continue
|
||||
#
|
||||
# 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()
|
||||
for _, i in enumerate(self.page.get_tabs()):
|
||||
if _ == 0:
|
||||
continue
|
||||
|
||||
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()
|
||||
|
||||
# try:
|
||||
# self.soon_action()
|
||||
|
||||
Reference in New Issue
Block a user