logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

selenium+python 更改默认请求头user-agent

selenium可调用firefox chrome phantomjs等各种浏览器(然而对于有界面的浏览器,还是ubuntu14.04原版自带的firefox支持最好)有时候需要更改请求头比如做爬虫 要爬手机版的页面 就要将其user-agent改成android的from selenium.webdriver.common.desired_capabilities import

#python#爬虫#selenium
到底了