Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone problem on pixelscan test #2689

Closed
Juanfra24 opened this issue Apr 12, 2024 · 2 comments
Closed

Timezone problem on pixelscan test #2689

Juanfra24 opened this issue Apr 12, 2024 · 2 comments
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@Juanfra24
Copy link

Juanfra24 commented Apr 12, 2024

First of all I would like to thank you @mdmintz for this excellent library.
I have only been working with it a couple of days and i can see all the features that you have already implemented, is just awesome

Now, I would like to comment about an issue im having with the pixelscan test, which I believe is the reason behind my script is also not passing a turnstile captcha. Im Actually using an authenticated proxy to connect to chrome, wich is working fine with the ip spoofing but is not hidding the timezone correctly on my Chromium.

image

image

These images can tell you what im talking about, i were looking for some solutions on stack and i found this thread.
https://stackoverflow.com/questions/44688079/how-do-i-set-a-timezone-in-selenium-chromedriver

Tried some of the solutions proposed there but without results. As I understand it, the change must be made at the time of instantiating the drive. Tried to pass the Timezone args trough the chromium arg but also failed.
with SB( uc=True, proxy=proxy_url, incognito=True, chromium_arg="TZ=America/New_York") as sb: ....

So, my question is, do you have any approach to make this work?
maybe is about my chromium driver version or my js version?

EDIT: my proxy ip is located on US

IP address
72.46.136.154 (United States)
ISP: Comcast Cable
User Type by IP: hosting
@mdmintz mdmintz added duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Apr 12, 2024
@mdmintz
Copy link
Member

mdmintz commented Apr 12, 2024

Timezone spoofing: #918 (comment)

tz_params = {'timezoneId': 'America/New_York'}
self.driver.execute_cdp_cmd('Emulation.setTimezoneOverride', tz_params)

(From https://chromedevtools.github.io/devtools-protocol/tot/Emulation/#method-setTimezoneOverride)

Also more info in this discussion already: #2464

@mdmintz mdmintz closed this as completed Apr 12, 2024
@Juanfra24
Copy link
Author

strange, I could swear I tried that, thanks i will follow the discussion 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants