Add more selectors to detect blocked access

This commit is contained in:
ngosang 2023-01-06 18:12:26 +01:00
parent a89679a52d
commit 2aa1744476
2 changed files with 4 additions and 1 deletions

View File

@ -3,9 +3,10 @@
## v3.1.0 (upcoming) ## v3.1.0 (upcoming)
* Kill Chromium processes properly to avoid defunct/zombie processes * Kill Chromium processes properly to avoid defunct/zombie processes
* Include procps (ps), curl and vim packages in the Docker image
* Update undetected-chromedriver * Update undetected-chromedriver
* Disable Zygote sandbox in Chromium browser * Disable Zygote sandbox in Chromium browser
* Add more selectors to detect blocked access
* Include procps (ps), curl and vim packages in the Docker image
## v3.0.0 (2023/01/04) ## v3.0.0 (2023/01/04)

View File

@ -16,6 +16,8 @@ import utils
ACCESS_DENIED_SELECTORS = [ ACCESS_DENIED_SELECTORS = [
# Cloudflare # Cloudflare
'div.cf-error-title span.cf-code-label span' 'div.cf-error-title span.cf-code-label span'
# Cloudflare http://bitturk.net/ Firefox
'#cf-error-details div.cf-error-overview h1'
] ]
CHALLENGE_TITLE = [ CHALLENGE_TITLE = [
# Cloudflare # Cloudflare