fwefwf
This commit is contained in:
20
推特/main.py
20
推特/main.py
@@ -403,12 +403,14 @@ class Hub_Web:
|
||||
# 'x://*[@id="react-root"]/div/div/div[2]/main/div/div/div/div/div/div[3]/div/div[2]/div[1]/div/div/div/div[2]/div[2]/div[2]/div/div/div/button').click()
|
||||
# time.sleep(5)
|
||||
|
||||
self.get_urls()
|
||||
# self.get_urls()
|
||||
#
|
||||
# try:
|
||||
# self.to_li()
|
||||
# except:
|
||||
# pass
|
||||
|
||||
try:
|
||||
self.to_li()
|
||||
except:
|
||||
pass
|
||||
self.page.get(url=f"https://x.com/search?q=websea&src=typed_query")
|
||||
|
||||
self.page.quit()
|
||||
|
||||
@@ -416,8 +418,8 @@ class Hub_Web:
|
||||
if __name__ == '__main__':
|
||||
|
||||
# 同时运行
|
||||
max_threads = 10
|
||||
delay_between_start = 3 # 每次启动线程之间的延迟时间(秒)
|
||||
max_threads = 1
|
||||
delay_between_start = 350 # 每次启动线程之间的延迟时间(秒)
|
||||
|
||||
with ThreadPoolExecutor(max_workers=max_threads) as executor:
|
||||
|
||||
@@ -426,8 +428,8 @@ if __name__ == '__main__':
|
||||
x_id=x_token_info.id,
|
||||
)
|
||||
|
||||
if xstart_info.start == "1":
|
||||
continue
|
||||
# if xstart_info.start:
|
||||
# continue
|
||||
|
||||
hun_web = Hub_Web(x_info=x_token_info, xstart_info=xstart_info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user