Use undetected chromedriver and it should work fine,
You might need some proxies and implement captcha solving service, depending in your usage,
Make sure to take your time with testing before scaling,
You don't want to end up with unstable results or losing your time finding out it's getting stuck or crashing somehow
Thanks. I have just started to use undetected chrome driver. Are there a set of recommended options to pass to it?
Currently for the normal chrome driver I have...
chrome_options.add_argument("--incognito")
preferences = {
"webrtc.ip_handling_policy": "disable_non_proxied_udp",
"webrtc.multiple_routes_enabled": False,
"webrtc.nonproxied_udp_enabled": False
}
chrome_options.add_experimental_option("prefs", preferences)
ua = UserAgent()
user_agent = ua.random
print(user_agent)
chrome_options.add_argument(f'--user-agent={user_agent}')
width = random.randint(800, 1600)
height = random.randint(600, 900)
driver.set_window_size(width, height)