Update README.md
This commit is contained in:
parent
7e9df7db10
commit
b94307f6c1
35
README.md
35
README.md
|
@ -1,39 +1,38 @@
|
|||
# undetected
|
||||
888 888 d8b
|
||||
888 888 Y8P
|
||||
888 888
|
||||
.d8888b 88888b. 888d888 .d88b. 88888b.d88b. .d88b. .d88888 888d888 888 888 888 .d88b. 888d888
|
||||
d88P" 888 "88b 888P" d88""88b 888 "888 "88b d8P Y8b d88" 888 888P" 888 888 888 d8P Y8b 888P"
|
||||
888 888 888 888 888 888 888 888 888 88888888 888 888 888 888 Y88 88P 88888888 888
|
||||
Y88b. 888 888 888 Y88..88P 888 888 888 Y8b. Y88b 888 888 888 Y8bd8P Y8b. 888
|
||||
"Y8888P 888 888 888 "Y88P" 888 888 888 "Y8888 "Y88888 888 888 Y88P "Y8888 888 88888888
|
||||
# undetected_chromedriver
|
||||
|
||||
BY ULTRAFUNKAMSTERDAM (https://github.com/ultrafunkamsterdam)
|
||||
|
||||
Custom Selenium Chromedriver v79 - Passes ALL bot mitigation systems (like distilnetworks.com)
|
||||
|
||||
|
||||
|
||||
Optimized Selenium Chromedriver patch which does not trigger anti-bot services like Distill Network.
|
||||
Automatically downloads the driver binary and patches it.
|
||||
Not tested on Chrome higher than 79!
|
||||
|
||||
|
||||
USAGE
|
||||
# 1- by far the easiest
|
||||
|
||||
|
||||
### 1- by far the easiest
|
||||
```python
|
||||
from undetected_chromedriver import Chrome, ChromeOptions
|
||||
driver = Chrome()
|
||||
driver.get('https://distilnetworks.com')
|
||||
# 2- patches current selenium instance (for current session)
|
||||
```
|
||||
|
||||
### 2- patches selenium module (before importing from selenium!)
|
||||
```python
|
||||
import undetected_chromedriver
|
||||
undetected_chromedriver.install()
|
||||
from selenium.webdriver import Chrome
|
||||
driver = Chrome()
|
||||
driver.get('https://distilnetworks.com')
|
||||
# 3 - Customized
|
||||
````
|
||||
|
||||
### 3 - Customized
|
||||
```python
|
||||
import undetected_chromedriver
|
||||
|
||||
#specify chromedriver version to download and patch
|
||||
undetected_chromedriver.TARGET_VERSION = 78
|
||||
|
||||
# or specify your own chromedriver binary to patch
|
||||
undetected_chromedriver.install(
|
||||
executable_path='c:/users/user1/chromedriver.exe',
|
||||
|
@ -44,4 +43,6 @@ opts = ChromeOptions()
|
|||
opts.add_argument(f'--proxy-server=socks5://127.0.0.1:9050')
|
||||
driver = Chrome(options=opts)
|
||||
driver.get('https://distilnetworks.com')
|
||||
a combination of function(s) from this module :)
|
||||
```
|
||||
|
||||
### 4- a combination of function(s) from this module :)
|
||||
|
|
Loading…
Reference in New Issue