问题描述
我在尝试使用 Chrome 驱动程序和 Selenium 打开 bet365 网站时出现灰屏.
var driver = new ChromeDriver();driver.Navigate().GoToUrl("https://www.bet365.it/");
我执行了您的用例并进行了一些调整并面临相同的后果.以下是执行细节:
代码块 [Python]:
从 selenium 导入 webdriver选项 = webdriver.ChromeOptions()options.add_argument(开始最大化")options.add_experimental_option("excludeSwitches", ["enable-automation"])options.add_experimental_option('useAutomationExtension', False)driver = webdriver.Chrome(options=options, executable_path=r'C:WebDriverschromedriver.exe')driver.get('https://www.bet365.it/')
浏览器快照:
深入研究
当我查看条款和条件时,明确提到:
- 其他
6.1 bet365 主动监控进出其网站的流量.Bet365 保留自行决定阻止访问本网站的权利,它是否应该遇到任何自动化或机器人化游戏的证据活动.
结论
似乎 Selenium 驱动 ChromeDriver 发起 google-chrome 正在检测到基于浏览上下文和导航被屏蔽了.
I’ve got grey screen when was trying to open bet365 site using Chrome driver and Selenium.
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("https://www.bet365.it/");
I executed your usecase with a couple of tweaks and faced the same consequences. Here are the execution details:
Code Block [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:WebDriverschromedriver.exe') driver.get('https://www.bet365.it/')
Browser Snapshot:
Deep Dive
When I checked the Terms and conditions it is clearly mentioned that:
Conclusion
It seems Selenium driven ChromeDriver initiated google-chrome based browsing context is getting detected and the navigation is blocked.
这篇关于在 bet365 网站上,用于 Selenium 的 Chrome 驱动程序卡在灰屏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!