Update README.md

This commit is contained in:
Leon 2021-04-29 10:14:47 +02:00 committed by GitHub
parent b3484a8b7e
commit 996ed01403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -5,8 +5,8 @@ https://github.com/ultrafunkamsterdam/undetected-chromedriver
Optimized Selenium Chromedriver patch which does not trigger anti-bot services like Distill Network / Imperva / DataDome / Botprotect.io
Automatically downloads the driver binary and patches it.
* **Tested from version 80 until current beta**
* **Patching also works on MS Edge (chromium-based) webdriver binary**
* **Tested until current chrome beta versions**
* **Works also on Brave Browser and many other Chromium based browsers**
* **Python 3.6++**
## Installation ##
@ -20,6 +20,15 @@ To prevent unnecessary hair-pulling and issue-raising, please mind the **[import
<br>
#### The Version 2 way ####
Literally, this is all you have to do. Settings are included and your browser executable found automagically.
```python
import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
with driver:
driver.get('https://coinfaucet.eu') # known url using cloudflare's "under attack mode"
```
#### the easy way (recommended) ####
```python
@ -28,13 +37,6 @@ driver = uc.Chrome()
driver.get('https://distilnetworks.com')
```
#### the V2 (beta) way ####
```python
import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
with driver:
driver.get('https://coinfaucet.eu') # known url using cloudflare's "under attack mode"
```
#### target specific chrome version ####
```python