ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.95k stars 1.16k forks source link

getting detected by cloudflare for a while. #1704

Open M2ATrail opened 10 months ago

M2ATrail commented 10 months ago

it has been getting detected for past few weeks, I tried https://pypi.org/project/DrissionPage/ this and it is working, but I'm curious if you're able to see what they're doing causing the block to go away since I prefer to use this one. can't read chinese and rewriting some of the things was rough.

codetool03 commented 10 months ago

use this to patch your driver https://github.com/codetool03/patch-for-chromedriver

iamdevdiv commented 10 months ago

@codetool03 Can you show an example code to use this with undetected chromedriver?

M2ATrail commented 10 months ago

use this to patch your driver https://github.com/codetool03/patch-for-chromedriver

Thanks I tried with this and it wasn't working even after manually clicking verify

import undetected_chromedriver as uc

browser_driver_path = r'C:\Python\chromedriver-win64\chromedriver.exe'
browser_binary_path = r'C:\Python\chrome-win64\chrome.exe'
browser_user_data_path = r'C:\Python\chrome_user_data'

uc_driver = uc.Chrome(user_data_dir=browser_user_data_path,
                      # user_agent = user_agent,
                      driver_executable_path=browser_driver_path,
                      browser_executable_path=browser_binary_path
                      )

uc_driver.get("https://ae.indeed.com/jobs?q=%22Data+Analyst%22+OR+%22Data+Analysis%22+OR+%22BI%22+OR+%22Business+Intelligence%22+OR+%22Business+Analyst%22+OR+%22Power+BI%22+OR+%22Tableau%22+OR+%22Alteryx%22&sort=date&start=0%27&vjk=454d3d3d9a733d37")