You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like many websites, Cloudflare also detects access to see if it is initiated by a Selenium bot. This detection mainly focuses on whether there are unique js variables, such as variables containing "selenium" and "webdriver", or file variables containing "$cdc_" and "$wdc_".
15
+
Like many websites, Cloudflare also detects access to see if it is initiated by a Selenium bot. This detection mainly focuses on whether there are unique js variables, such as variables containing "selenium" and "webdriver", or file variables containing "$cdc_" and "$wdc_".
16
16
17
-
The detection mechanism of each driver may be different, the following solutions are mainly for chromedriver.
17
+
The detection mechanism of each driver may be different, the following solutions are mainly for chromedriver.
18
18
19
-
1. Use Undetected-chromedriver This is a very convenient package that can be installed directly through pip. Then initialize the driver like below, after that it works just like regular Selenium usage.
19
+
1. Use Undetected-chromedriver This is a very convenient package that can be installed directly through pip. Then initialize the driver like below, after that it works just like regular Selenium usage.
2. Directly modify the chromedriver executable file You can change the key variable to any character that does not contain "cdc".
30
+
2. Directly modify the chromedriver executable file You can change the key variable to any character that does not contain "cdc".
31
+
30
32
```
31
33
javascript Copy code
32
34
@@ -53,7 +55,7 @@ function getPageCache(opt_doc, opt_w3c) {
53
55
}
54
56
```
55
57
56
-
There is not much difference between these two methods in essence. In fact, undetected-chromedriver will apply a patch when starting chromedriver, completing the steps of modifying the key.
58
+
There is not much difference between these two methods in essence. In fact, undetected-chromedriver will apply a patch when starting chromedriver, completing the steps of modifying the key.
57
59
58
60
```
59
61
python Copy code
@@ -76,5 +78,6 @@ def patch_exe(self):
76
78
linect += 1
77
79
78
80
```
79
-
3. Using the **ScrapingBypass** API, you can easily [bypass Cloudflare](https://www.scrapingbypass.com) robot verification, even if you need to send 100,000 requests, you don't have to worry about being identified as a scraper.
81
+
82
+
3. Using the **ScrapingBypass** API, you can easily [bypass Cloudflare](https://www.scrapingbypass.com) robot verification, even if you need to send 100,000 requests, you don't have to worry about being identified as a scraper.
80
83
A ScrapingBypass API can break through all anti-anti-bot robot inspections, easily bypass Cloudflare, CAPTCHA verification, WAF, CC protection, and provide HTTP API and Proxy, including interface address, request parameters, return processing; and set Referer, browser UA and headless status and other browser fingerprint device features.
0 commit comments