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.6k stars 1.14k forks source link

C# #138

Open STRATZ-Ken opened 3 years ago

STRATZ-Ken commented 3 years ago

Anyway to run this easily on C#? Can we just take the .exe that downloads and patches and use it with like Selenium?

azhuge233 commented 3 years ago

In the older version, yes, but not certain it will work on the current version though. I've tried placing the executable chromedriver.exe in the system PATH (Windows) and it worked. C# selenium will use the patched chromedriver automatically.

techbits00 commented 3 years ago

@azhuge233 can you share the process you followed or code snippet of your configuration? i have tried to copy driver and played with all sorts of options but i still get stuck with Cloudflare wall.

thanks, appreciate your response

azhuge233 commented 3 years ago

@techbits00 I have used undetected_chromedriver for a few months last year but it doesn't work anymore(at least for me), so I switched to Playwright. If you are willing to use Playwright, remember to use firefox or webkit, chromium can still be detected. I guess that cloudflare spends more time on preventing chromium scraping, maybe firefox webdriver can also pass the detection.

fysh711426 commented 2 years ago

I used C# to implement some simple functions from this repo, for your reference (It's not perfect yet, there are still some difficult problems to solve)

https://github.com/fysh711426/UndetectedChromeDriver