ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.91k stars 1.16k forks source link

UC chromedriver doesn't run if called from another script #622

Open lollofos opened 2 years ago

lollofos commented 2 years ago

I'm trying to call a python .py web scraping script from another script.

I'm doing a lot of different try on Jupyter with different codes but the output is the same: No signal at all of any kind of task completed, it seems it stops at the very beginnig.

As said, it is a web scraping script I'm doing with undetected chromedriver (mandatory requirement to complete the script cause the website can detect the presence of a bot); I've tried doing it with the normal chromedriver and it works so I think the issue here is related with the undetected one.

def combinations(items):
    result = []
    for i in range(1, len(items) + 1):
        result.extend(itertools.combinations(items, i))
    return result

driver = uc.Chrome(executable_path=r"C:\\Users\\xx\\chromedriver.exe",service_args=['--quiet'])
driver.set_window_size(1024, 600)
driver.maximize_window()
driver.implicitly_wait(6.5)
wait=WebDriverWait(driver,10)
driver.get("https://www.bet365.it")
sebdelsol commented 2 years ago

This a duplicate of a duplicate of a duplicate... ad infinitum. Please check some of those : #621 #585 #570 #561 #519 #384. None of those "issues" are actual bugs.