Files
DatBrowser/undetectedChromedriver/patchChromedriver.py

14 lines
667 B
Python

#!/bin/python3
import undetected_chromedriver as uc
options = uc.ChromeOptions()
# Chromedriver is in current directory
# ERROR : This version of ChromeDriver only supports Chrome version xxx
# npx @puppeteer/browsers install chrome@xxx
# Change the path to the Chrome binary if needed
# "/home/ninluc/Documents/codage/DatBrowser/undetectedChromedriver/chrome/google-chrome"
# "/home/ninluc/chrome/linux-124.0.6367.207/chrome-linux64/chrome"
driver = uc.Chrome(options = options, browser_executable_path="/bin/google-chrome", driver_executable_path="/home/ninluc/Documents/codage/DatBrowser/undetectedChromedriver/chromedriver")
driver.get('https://nowsecure.nl')