3-selenium反爬了,网页打开一直提示失败
添加如下代码
from selenium.webdriver import ChromeOptions
option = ChromeOptions()
option.add_experimental_option('excludeSwitches', ['enable-automation'])
option.add_argument("disable-blink-features=AutomationControlled")
driver = webdriver.Chrome("chromedriver",0,options=option)
driver.get("https://www.xiaohongshu.com")
有问题留言即可
本文来自博客园,作者:小排顾,转载请注明原文链接:https://www.cnblogs.com/SparkProgram/p/17372192.html