Chrome 访问此页面已被拒绝,因为我们相信您正在使用自动化工具浏览网站,SELENIUM

3zwjbxry  于 2023-04-27  发布在  Go
关注(0)|答案(1)|浏览(255)

我尝试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
有解决办法吗?

c8ib6hqw

c8ib6hqw1#

您可以尝试:https://github.com/diprajpatra/selenium-stealth。但是,应该注意的是,如果网站所有者不希望使用机器人,则使用机器人是不道德的。
对于chrome,明确地:https://github.com/ultrafunkamsterdam/undetected-chromedriver

相关问题