mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-07-23 18:40:07 +00:00
Fix selector for new challenge
This commit is contained in:
parent
99d074084a
commit
70a423805d
@ -19,13 +19,13 @@ ACCESS_DENIED_SELECTORS = [
|
||||
]
|
||||
CHALLENGE_SELECTORS = [
|
||||
# Cloudflare
|
||||
'#cf-challenge-running', '.ray_id', '.attack-box', '#cf-please-wait', '#trk_jschal_js',
|
||||
'#cf-challenge-running', '.ray_id', '.attack-box', '#cf-please-wait', '#challenge-spinner', '#trk_jschal_js',
|
||||
# DDoS-GUARD
|
||||
'#link-ddg',
|
||||
# Custom CloudFlare for EbookParadijs, Film-Paleis, MuziekFabriek and Puur-Hollands
|
||||
'td.info #js_info'
|
||||
]
|
||||
SHORT_TIMEOUT = 5
|
||||
SHORT_TIMEOUT = 10
|
||||
|
||||
|
||||
def test_browser_installation():
|
||||
@ -220,11 +220,11 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
|
||||
challenge_res.url = driver.current_url
|
||||
challenge_res.status = 200 # todo: fix, selenium not provides this info
|
||||
challenge_res.cookies = driver.get_cookies()
|
||||
challenge_res.userAgent = utils.get_user_agent(driver)
|
||||
|
||||
if not req.returnOnlyCookies:
|
||||
challenge_res.headers = {} # todo: fix, selenium not provides this info
|
||||
challenge_res.response = driver.page_source
|
||||
challenge_res.userAgent = utils.get_user_agent(driver)
|
||||
|
||||
res.result = challenge_res
|
||||
return res
|
||||
|
Loading…
x
Reference in New Issue
Block a user