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.57k stars 1.14k forks source link

Geolocation Timezone Error #796

Open artemysss11 opened 2 years ago

artemysss11 commented 2 years ago

Hello, I am very new to python and trying to learn automation.

I tried UC and it seems almost undetectable, my only issue right now is that websites like whoer.net detect the timezone difference timezoneuc

Is there a way to spoof the timezone depending on the proxy location?

I am using bright data proxies for tests

here is the code I have so far

` ``` PROXY_HOST = '127.0.0.1:24000' # rotating proxy or host randua = random.choice(open("useragents.txt").readlines()) self.tries = 5 options = Options()

Use a SOCKS5 proxy

    options.add_argument('--proxy-server=socks5://%s' % PROXY_HOST)
    options.add_argument(f'--user-agent={randua}')
    # setting profile
    options.user_data_dir = "c:\\temp\\profile"

    # another way to set profile is the below (which takes precedence if both variants are used
    options.add_argument('--user-data-dir=c:\\temp\\profile2')

    # just some options passing in to skip annoying popups
    options.add_argument('--no-first-run --no-service-autorun --password-store=basic')
            #options.add_argument("--headless")
    prefs = {"profile.default_content_settings.geolocation": 1}

    # Initialize Selenium Web Driver
    self.driver = uc.Chrome(enable_cdp_events=True, options=options)
    self.driver.get('https://whoer.net')`
ahmedabdelhamedz commented 1 year ago

up interested in same problem

NoizzyBots commented 1 year ago

I'm also interested in this problem

Kotemana commented 10 months ago

have anyone found the solution so far? I see my proxy is detected because of time delta too