我尝试crunchbase.com使用selenium/python和Chrome访问www.example.com,但我收到**“访问此页面已被拒绝,因为我们认为您正在使用自动化工具浏览网站。
我的登录代码:
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications": 2}
chrome_options.add_experimental_option("prefs", prefs)
chrome_options.add_argument("--enable-javascript")
chrome_options.add_argument("--start-maximized")
driver = webdriver.Chrome(ChromeDriverManager().install(), options=chrome_options)
driver.get(url)
即使我按住按钮,它也会要求我再试一次x1c 0d1x
有解决办法吗?
1条答案
按热度按时间c8ib6hqw1#
您可以尝试:https://github.com/diprajpatra/selenium-stealth。但是,应该注意的是,如果网站所有者不希望使用机器人,则使用机器人是不道德的。
对于chrome,明确地:https://github.com/ultrafunkamsterdam/undetected-chromedriver