分析网页在分离模式仍然得到检测作为一个机器人

0

的问题

我想要分析一些网站使用的机器人探测的算法。 我用以下铬的选择

chrome_options = Options()
chrome_options.add_argument("start-maximized")
chrome_options.add_experimental_option("detach", True)
chrome_options.add_experimental_option("excludeSwitches", ["enable-automation"])
chrome_options.add_experimental_option('useAutomationExtension', False)
chrome_options.add_argument("--disable-blink-features")
chrome_options.add_argument('--start-maximized')
chrome_options.add_argument('window-size=1920,1080')
chrome_options.add_argument("--disable-blink-features=AutomationControlled")
driver = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=chrome_options)
driver.get(url)

我也是修补 chromedriver.exe 删除 cdc_ 模式。

当浏览器窗口开始进入网站,网站检测到它作为机器人,并防止装载的内容。 但是,当浏览器中的分离模式和我手按"刷新"键,网站内容是装成功。 模拟按"f5"也不工作,网站仍然块的内容载入。

1

最好的答案

0

分离 (铬的具体能力)

Name:           detach 
Type:           boolean 
Default:        false 
Description:    If false, Chrome will be quit when ChromeDriver is killed, 
                regardless of whether the session is quit. If true, Chrome will only 
                be quit if the session is quit (or closed). Note, if true, and the 
                session is not quit, ChromeDriver cannot clean up the temporary user 
                data directory that the running Chrome instance is using.

按说明,浏览器中的分离模式,但本届会议是不会退出, ChromeDriver 无法清除了临时 的用户数据目录的 ,运行的 实例是使用。

因此, ChromeDriver 发起的 浏览器 仍然得到 检测到的.

2021-11-24 10:55:59

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................