fewfef
This commit is contained in:
33
推特/main.py
33
推特/main.py
@@ -1,12 +1,11 @@
|
||||
import random
|
||||
import threading
|
||||
import time
|
||||
import pyotp
|
||||
import random
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
import pyotp
|
||||
from DrissionPage import ChromiumOptions, ChromiumPage
|
||||
from loguru import logger
|
||||
from peewee import fn
|
||||
from loguru import logger
|
||||
from DrissionPage import ChromiumOptions, ChromiumPage
|
||||
|
||||
from bit_tools import openBrowser, createBrowser, get_group_lists, get_browser_lists_Browser
|
||||
from models.ips import Ips
|
||||
@@ -604,20 +603,20 @@ Win–win benefits — don’t miss out! 🚀
|
||||
tab.actions.click(
|
||||
'x:/html/body/div[1]/div/div/div[1]/div[2]/div/div/div/div[2]/div/div[3]/div/div/div/a[1]')
|
||||
time.sleep(random.randint(1, 5))
|
||||
tab.actions.type(random.choice(tests))
|
||||
# tab.actions.type(random.choice(tests))
|
||||
tab.ele(
|
||||
'x:/html/body/div[1]/div/div/div[1]/div[2]/div/div/div/div/div/div[2]/div[2]/div/div/div/div[3]/div[2]/div[1]/div/div/div/div[1]/div[2]/div/div/div/div/div/div/div/div/div/div/div[1]/div/div[1]/div/div/div/div/div/div[2]/div/div/div/div').input(
|
||||
random.choice(tests))
|
||||
time.sleep(random.randint(1, 5))
|
||||
|
||||
# try:
|
||||
# for i in tab.eles('x://*[normalize-space(text())= "Post"]'):
|
||||
# tab.actions.click(on_ele=i)
|
||||
# time.sleep(random.randint(1, 5))
|
||||
# except:
|
||||
# for i in tab.eles('x://*[normalize-space(text())= "Postear"]'):
|
||||
# tab.actions.click(on_ele=i)
|
||||
# time.sleep(random.randint(1, 5))
|
||||
for i in range(3):
|
||||
try:
|
||||
tab.actions.click(
|
||||
'x:/html/body/div[1]/div/div/div[1]/div[2]/div/div/div/div/div/div[2]/div[2]/div/div/div/div[3]/div[2]/div[1]/div/div/div/div[2]/div[2]/div/div/div/button/div/span/span')
|
||||
except:
|
||||
pass
|
||||
|
||||
tab.actions.click(
|
||||
'x:/html/body/div[1]/div/div/div[1]/div[2]/div/div/div/div/div/div[2]/div[2]/div/div/div/div[3]/div[2]/div[1]/div/div/div/div[2]/div[2]/div/div/div/button/div/span/span')
|
||||
time.sleep(random.randint(1, 5))
|
||||
|
||||
time.sleep(random.randint(5, 15))
|
||||
|
||||
@@ -763,7 +762,7 @@ if __name__ == '__main__':
|
||||
# time.sleep(random.randint(15, 60))
|
||||
|
||||
# 同时运行
|
||||
max_threads = 1
|
||||
max_threads = 8
|
||||
delay_between_start = 15 # 每次启动线程之间的延迟时间(秒)
|
||||
|
||||
with ThreadPoolExecutor(max_workers=max_threads) as executor:
|
||||
|
||||
12
推特/test.py
12
推特/test.py
@@ -1,12 +0,0 @@
|
||||
import random
|
||||
|
||||
with open('推文.txt', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
tasks = [] # 创建任务列表
|
||||
lines = content.split('\n')
|
||||
print(lines)
|
||||
|
||||
# 随机选择一个段落
|
||||
random_paragraph = random.choice(lines)
|
||||
print(random_paragraph)
|
||||
Reference in New Issue
Block a user