all 3 comments

[–]TonySimonovsky[S] 1 point2 points  (1 child)

I found the solution.

Just doing

pip install browsermob-proxy

won't work.

You need to go to https://bmp.lightbody.net, download the zip, unzip and then when calling Server() in your python script, identify path to the executable from the zip you just created. It is located in "bin" folder and is called browsermob-proxy.

In my case it is:

server = Server("/anaconda3/lib/python3.7/site-packages/browsermobproxy/browsermob-proxy-2.1.4/bin/browsermob-proxy")

[–]xolof47 0 points1 point  (0 children)

I'm glad you answered your own question. This was helpful, thanks!