目录
browsermob-proxy
是提供命令行的方式或者嵌入到Java项目中通过api方式生成HAR文件的插件,属于selenium的一个子项目。
原理:开启一个端口监控某个端口下的所有HTTP请求,进行数据抓取。
异常情况
系统原来启动browsermob-proxy-2.1.4正常,后因为更换了更高版本的jdk,导致启动失败:
server = Server(r'D:\install\browsermob-proxy-2.1.4\bin\browsermob-proxy.bat')
server.start()
错误截图没来得及截图,抱歉。
server.log信息如下:
Running BrowserMob Proxy using LittleProxy implementation. To revert to the legacy implementation, run the proxy with the command-line option '--use-littleproxy false'.
Exception in thread "main" com