当我尝试使用 Chrome 驱动程序和 Selenium 打开 bet365 网站时出现灰屏。
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("https://www.bet365.it/");
我通过一些调整执行了您的用例,但遇到了相同的后果。以下是执行细节:
-
代码块[Python]:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe')
driver.get('https://www.bet365.it/')
-
浏览器快照:
深潜
当我检查条款和条件 https://help.bet365.it/it/terms-and-conditions其中明确提到:
- Other
6.1 bet365 主动监控进出其网站的流量。 Bet365 保留自行决定阻止访问本网站的权利,
如果它遇到任何自动化或机器人化游戏的证据
活动。
结论
它似乎Selenium https://stackoverflow.com/questions/54459701/what-is-selenium-and-what-is-webdriver/54482491#54482491 driven Chrome驱动程序 https://stackoverflow.com/questions/48079120/what-is-the-difference-between-chromedriver-and-webdriver-in-selenium/48080871#48080871发起谷歌浏览器 /questions/tagged/google-chrome检测到基于浏览上下文的内容并阻止导航。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)