知乎使用selenium反爬虫的解决方案

from selenium.webdriver import Chrome
from selenium.webdriver import ChromeOptions
option = ChromeOptions()
option.add_experimental_option('excludeSwitches', ['enable-automation'])
driver = Chrome(options=option)
driver.get('https://zhuanlan.zhihu.com/c_1047791597869199360')  

猜你喜欢

转载自www.cnblogs.com/powercai/p/11316742.html