refactor: replace fixed sleep duration with dynamic wait time in sign_up_account function for improved user experience

This commit is contained in:
chengchongzhen
2024-12-31 17:03:53 +08:00
parent e21c4249bd
commit c404d0de31

View File

@@ -291,7 +291,10 @@ def sign_up_account(browser, tab):
print(e)
handle_turnstile(tab)
time.sleep(8)
wait_time = random.randint(3, 6)
for i in range(wait_time):
print(f"等待中... {wait_time-i}")
time.sleep(1)
tab.get(settings_url)
try:
usage_selector = (