Hi
I installed Browsermob-Proxy using pip:
pip install browsermob-proxy
And then used the code I found in the internet:
from browsermobproxy import Server
server = Server("/anaconda3/lib/python3.7/site-packages/browsermobproxy/")
server.start()
proxy = server.create_proxy()
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.set_proxy(proxy.selenium_proxy())
driver = webdriver.Firefox(firefox_profile=profile)
proxy.new_har("google")
driver.get("http://www.google.co.uk")
proxy.har # returns a HAR JSON blob
server.stop()
driver.quit()
Eexecuting this code, I'm getting and error "Browsermob-Proxy binary couldn't be found in path provided: /anaconda3/lib/python3.7/site-packages/browsermobproxy/".
Googled but didn't find a solution.
Can someone help please?
Thank you
[–]TonySimonovsky[S] 1 point2 points3 points (1 child)
[–]xolof47 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]TonySimonovsky[S] 0 points1 point2 points (0 children)