SakuraFrp 自动签到(main + sakura_frp_auto_check + SakuraFrpQiandao),已排除 .env 与日志

This commit is contained in:
RRRosmontis
2026-08-27 21:43:38 +08:00
commit 2a9f96fb18
21 changed files with 2209 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import time
import random
class HumanSimulator:
"""模拟人类行为"""
@staticmethod
def type_text(element, text: str, min_delay: float = 0.05, max_delay: float = 0.2):
"""模拟人类打字"""
for char in text:
element.type(char, delay=0)
time.sleep(random.uniform(min_delay, max_delay))
@staticmethod
def random_sleep(min_sec: float = 1.0, max_sec: float = 3.0):
"""随机等待"""
time.sleep(random.uniform(min_sec, max_sec))