我正在尝试在python中使用seleniumchromedriver作为网站www.mouser.co.uk。然而,它从第一个镜头就被检测到是机器人。在
有人对此有什么解释吗?。以下是我使用的代码:
options = Options()
options.add_argument("--start-maximized")
browser = webdriver.Chrome('chromedriver.exe',chrome_options=options)
wait = WebDriverWait(browser, 30)
browser.get('https://www.mouser.co.uk')
我尝试过用特定的访问url
https://www.mouser.co.uk/
chrome.选项但确实被检测到并被重定向到原谅我们的中断页面。在代码块:
现在检查原谅我们的中断页面,您会发现
<body>
标记包含:dist-GlobalHeader
dist-PageWrap
这清楚地表明,该网站受到了机器人程序管理服务提供商Distil Networks的保护,ChromeDriver的导航被检测到并随后被阻止。在
蒸馏
根据文章There Really Is Something About Distil.it...:
此外
参考文献
您可以在Unable to use Selenium to automate Chase site login中找到相关讨论
相关问题 更多 >
编程相关推荐