chore: добавлена возможность передавать локатор для выбора элемента сигнализирующего о странице антибот защиты

This commit is contained in:
protokey committed 2026-09-18 16:21:07 +04:00
1 parent 6124c604d9
commit ce68d2727c
7 files changed
+36 -11

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ class ReCaptchaDetector(Detector):
interactive_marker_selector = "body > div:nth-child(2) > div:nth-child(4) > iframe:nth-child(1)"
# попытка определить что мы вообще на странице блокировки
marker_selector = "#captcha-form"
marker_selector = info.detect_locator or "#captcha-form"
if not await page.query_selector(marker_selector):
log.debug("Page is not a challenge form")
if info.success_locator: