1. 首页
  2. 数据库
  3. 其它
  4. python selenium被反爬系统识别的问题

python selenium被反爬系统识别的问题

上传者: 2021-01-31 07:59:27上传 PDF文件 43.32KB 热度 17次
在使用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
下载地址
用户评论