美文网首页
2021最新Chrome 88版本 绕过webdriver检测

2021最新Chrome 88版本 绕过webdriver检测

作者: 落雪无尘V | 来源:发表于2021-03-01 17:11 被阅读0次
    from selenium import webdriver
     
     
    class WebDriverChrome(object):
     
        def __init__(self):
            self.driver = self.StartWebdriver()
     
        def StartWebdriver(self):
            options = webdriver.ChromeOptions()
            options.add_argument("start-maximized")
            options.add_argument("--disable-blink-features=AutomationControlled")
            options.add_experimental_option("excludeSwitches", ["enable-automation"])
            options.add_experimental_option("useAutomationExtension", False)
            driver = webdriver.Chrome(options=options)
            return driver
     
        def RunStart(self):
            self.driver.get('https://bot.sannysoft.com')
            # self.driver.quit()
     
     
    if __name__ == '__main__':
        Crawl = WebDriverChrome()
        Crawl.RunStart()
    

    来自:https://blog.csdn.net/weixin_38640052/article/details/113421737

    相关文章

      网友评论

          本文标题:2021最新Chrome 88版本 绕过webdriver检测

          本文链接:https://www.haomeiwen.com/subject/nhbafltx.html