mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-07 12:05:37 +00:00
Update Cloudflare challenge and checkbox selectors (#1224)
This commit is contained in:
parent
2ecf88895b
commit
a2c0e4348e
@ -40,7 +40,7 @@ CHALLENGE_TITLES = [
|
|||||||
]
|
]
|
||||||
CHALLENGE_SELECTORS = [
|
CHALLENGE_SELECTORS = [
|
||||||
# Cloudflare
|
# Cloudflare
|
||||||
'#cf-challenge-running', '.ray_id', '.attack-box', '#cf-please-wait', '#challenge-spinner', '#trk_jschal_js',
|
'#cf-challenge-running', '.ray_id', '.attack-box', '#cf-please-wait', '#challenge-spinner', '#trk_jschal_js', '#turnstile-wrapper',
|
||||||
# Custom CloudFlare for EbookParadijs, Film-Paleis, MuziekFabriek and Puur-Hollands
|
# Custom CloudFlare for EbookParadijs, Film-Paleis, MuziekFabriek and Puur-Hollands
|
||||||
'td.info #js_info',
|
'td.info #js_info',
|
||||||
# Fairlane / pararius.com
|
# Fairlane / pararius.com
|
||||||
@ -258,7 +258,7 @@ def click_verify(driver: WebDriver):
|
|||||||
driver.switch_to.frame(iframe)
|
driver.switch_to.frame(iframe)
|
||||||
checkbox = driver.find_element(
|
checkbox = driver.find_element(
|
||||||
by=By.XPATH,
|
by=By.XPATH,
|
||||||
value='//*[@id="challenge-stage"]/div/label/input',
|
value='//*[@id="content"]/div/div/label/input',
|
||||||
)
|
)
|
||||||
if checkbox:
|
if checkbox:
|
||||||
actions = ActionChains(driver)
|
actions = ActionChains(driver)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user