import undetected as uc
import logging
logging.basicConfig(level=logging.DEBUG)
options = uc.ChromeOptions()
# Enable network/performance logging
options.set_capability(
"goog:loggingPrefs",
{"performance": "ALL"}
)
driver = uc.Chrome(
options=options,
driver_executable_path="./bin/chromedriver-linux64/chromedriver",
use_subprocess=False
)
driver.get("https://example.com")
driver.quit()
DEBUG:undetected.patcher:Cleaning up unused files; found: []
DEBUG:undetected.patcher:getting release number from /latest-versions-per-milestone-with-downloads.json
It then gets stuck presumably downloading the chromedriver executable for god knows how long. It's been at it for like 15 minutes.
Need to have the webdriver cached as it takes a while for it to download and execute the actual reqquest
It then gets stuck presumably downloading the chromedriver executable for god knows how long. It's been at it for like 15 minutes.
Need to have the webdriver cached as it takes a while for it to download and execute the actual reqquest