From 6e1c073a6fa646ae3c3bfca2d67459502e06e527 Mon Sep 17 00:00:00 2001 From: Alvaro Santos Andres Date: Tue, 12 Aug 2025 07:16:33 +0200 Subject: [PATCH] fix: set default CAPTCHA_RETRIES to 3 --- README.md | 2 +- src/consts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c02d128..16c7552 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Built with [seleniumbase](https://seleniumbase.io/) and [FastAPI](https://fastap | `PROXY` | None | Proxy to use in format: `protocol://username:password@host:port`. [SOCKS5 with authentication is not supported by Chrome](https://stackoverflow.com/questions/75602916/connection-to-private-proxy-socks5-with-chrome-webrequest-onauthrequired-and), see `compose.yaml` file for a workaround | | `USE_HEADLESS` | `SeleniumBase default` | Use headless chromium. | | `USE_XVFB` | `SeleniumBase default` | Use activate the special virtual display. | -| `CAPTCHA_RETRIES` | 5 | Number of times to retry solving a CAPTCHA challenge before giving up. This helps in cases where CAPTCHA challenges fail intermittently and can be retried successfully. | +| `CAPTCHA_RETRIES` | 3 | Number of times to retry solving a CAPTCHA challenge before giving up. This helps in cases where CAPTCHA challenges fail intermittently and can be retried successfully. | ## Proxy Recommendation diff --git a/src/consts.py b/src/consts.py index 5ff53ad..a9fa4dc 100644 --- a/src/consts.py +++ b/src/consts.py @@ -33,7 +33,7 @@ USE_HEADLESS = ( os.getenv("USE_HEADLESS") in ["true", "1"] if os.getenv("USE_HEADLESS") else None ) -CAPTCHA_RETRIES = int(os.getenv("CAPTCHA_RETRIES", "5")) +CAPTCHA_RETRIES = int(os.getenv("CAPTCHA_RETRIES", "3")) PROXY = os.getenv("PROXY")