I am using a Mac and installed the required files from bmp.lightbody.net, and unzipped them. I tried creating a Server in my Python file using the following code.
server = Server('/Users/username/Downloads/browsermob-proxy-2.1.4/bin/browsermob-proxy')
I was met with the following error
browsermobproxy.exceptions.ProxyServerError: Browsermob-Proxy binary couldn't be found in path provided: /Users/username/Downloads/browsermob-proxy-2.1.4/bin/browsermob-proxy
The path runs perfectly in my Terminal, and I was able to create a proxy.
curl -X POST localhost:8080/proxy
{"port":8081}
I have also tried appending the folder to my path using sys and moving the browsermob folder to the folder where the python file is present, but nothing seems to work.
Any help would be welcome. Thanks!
Similar question
Try to add the actual directory to the PATH
This way you don't have to specify the path arg on the Server instance manually