diff --git a/scrapers/atcoder.py b/scrapers/atcoder.py index 8645beb..a9876cf 100644 --- a/scrapers/atcoder.py +++ b/scrapers/atcoder.py @@ -30,7 +30,6 @@ from .timeouts import ( BROWSER_ELEMENT_WAIT, BROWSER_NAV_TIMEOUT, BROWSER_SESSION_TIMEOUT, - BROWSER_SETTLE_DELAY, BROWSER_SUBMIT_NAV_TIMEOUT, BROWSER_TURNSTILE_POLL, HTTP_TIMEOUT, @@ -500,7 +499,6 @@ def _submit_headless( "buffer": Path(file_path).read_bytes(), }, ) - page.wait_for_timeout(BROWSER_SETTLE_DELAY) page.locator('button[type="submit"]').click(no_wait_after=True) page.wait_for_url( lambda url: "/submissions/me" in url, diff --git a/scrapers/timeouts.py b/scrapers/timeouts.py index e4ff583..4148d4a 100644 --- a/scrapers/timeouts.py +++ b/scrapers/timeouts.py @@ -11,4 +11,3 @@ BROWSER_SUBMIT_NAV_TIMEOUT["atcoder"] = BROWSER_NAV_TIMEOUT * 2 BROWSER_SUBMIT_NAV_TIMEOUT["codeforces"] = BROWSER_NAV_TIMEOUT * 2 BROWSER_TURNSTILE_POLL = 5000 BROWSER_ELEMENT_WAIT = 10000 -BROWSER_SETTLE_DELAY = 500