refactor: replace fixed sleep duration with dynamic wait time in sign_up_account function for improved user experience
This commit is contained in:
@@ -291,7 +291,10 @@ def sign_up_account(browser, tab):
|
|||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
handle_turnstile(tab)
|
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)
|
tab.get(settings_url)
|
||||||
try:
|
try:
|
||||||
usage_selector = (
|
usage_selector = (
|
||||||
|
|||||||
Reference in New Issue
Block a user