python selenium被反爬系统识别的问题
在使用selenium这个压箱底的反爬技能爬取boss时,踢到了铁板。 selenium也能被反爬系统识别出来,无法打开链接。 原因在于slenium打开网页时,Chrome会显示这个标签条,使得服务器识别为爬虫。 解决办法就是设置options,隐藏标签: 代码如下: from selenium import webdriver from selenium.webdriver import Chrome from selenium.webdriver import ChromeOptions options = webdriver.ChromeOptions() options.add_e
下载地址
用户评论