rgfewfger
This commit is contained in:
33
推特/main.py
33
推特/main.py
@@ -52,15 +52,6 @@ class Hub_Web:
|
||||
self.xstart_info.start = 0
|
||||
self.xstart_info.save()
|
||||
|
||||
def end(self):
|
||||
self.page.quit()
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.end()
|
||||
|
||||
def create_Browser(self):
|
||||
if not self.xstart_info.bit_id:
|
||||
|
||||
@@ -545,6 +536,15 @@ class Hub_Web:
|
||||
except:
|
||||
pass
|
||||
|
||||
def end(self):
|
||||
self.page.quit()
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.end()
|
||||
|
||||
# def action(self):
|
||||
|
||||
|
||||
@@ -652,6 +652,14 @@ class Hub_Web:
|
||||
# self.page.quit()
|
||||
|
||||
|
||||
def run_work(x_token_info, xstart_info):
|
||||
# hun_web = Hub_Web(x_info=x_token_info, xstart_info=xstart_info)
|
||||
# executor.submit(hun_web.to_do_tui)
|
||||
|
||||
with Hub_Web(x_info=x_token_info, xstart_info=xstart_info) as hub:
|
||||
hub.to_do_tui() # 发推
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# fz_datas = get_group_lists()
|
||||
#
|
||||
@@ -692,9 +700,10 @@ if __name__ == '__main__':
|
||||
# if xstart_info.start:
|
||||
# continue
|
||||
|
||||
hun_web = Hub_Web(x_info=x_token_info, xstart_info=xstart_info)
|
||||
|
||||
executor.submit(hun_web.to_do_tui)
|
||||
# hun_web = Hub_Web(x_info=x_token_info, xstart_info=xstart_info)
|
||||
#
|
||||
# executor.submit(hun_web.to_do_tui)
|
||||
|
||||
executor.submit(run_work, x_token_info, xstart_info)
|
||||
# time.sleep(random.randint(15, 60))
|
||||
time.sleep(delay_between_start)
|
||||
|
||||
Reference in New Issue
Block a user