使用python selenium模块在chrome浏览器中设置HTTP头的方法?

使用python selenium模块在chrome浏览器中设置HTTP头的方法?,python,selenium,http-headers,selenium-chromedriver,Python,Selenium,Http Headers,Selenium Chromedriver,我知道用selenium中的chrome驱动程序更改用户代理的方法。但我不知道如何设置HTTP头的其他字段(例如,accept、accept languag、connection、升级不安全请求等等) 有没有办法更改标题? 我使用的是python版本3.6和selenium模块版本3.4.1。你不能为chrome使用一些扩展吗。比如修改标题或者插件之类的?

我知道用selenium中的chrome驱动程序更改用户代理的方法。但我不知道如何设置HTTP头的其他字段(例如,accept、accept languag、connection、升级不安全请求等等)

有没有办法更改标题?
我使用的是python版本3.6和selenium模块版本3.4.1。

你不能为chrome使用一些扩展吗。比如修改标题或者插件之类的?