selenium调整User Agent
0
python selenium在打开的浏览器中动态调整User Agent
核心代码是: browser.execute_cdp_cmd(\'Network.setUserAgentOverride\', { \"userAgent\": \"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36\",[详细]
2022-12-10 12:59 分类:开发