大家好,我想在python中运行多个browsermob服务器(想同时检测两个chrome浏览器的http,但以后可以分开),但是当我将第二个服务器分配给第二个代理时,我得到错误'没有json对象可以解码'
我的代码如下
server1 = Server(path_browsermobproxy, options={'port':9090})
server1.start()
proxy1 = server1.create_proxy()
profile1 = webdriver.FirefoxProfile()
profile1.set_proxy(proxy1.selenium_proxy())
server2 = Server(path_browsermobproxy, options={'port':9091})
server2.start()
proxy2 = server2.create_proxy()
profile2 = webdriver.FirefoxProfile()
profile2.set_proxy(proxy2.selenium_proxy())