Python Browsermob Proxy Library

This is the Python Library for interaction with the Browsermob Proxy. It allows us to create a proxy, set references and generate HAR representations. For more details read the docs. Note that this will only work with Selenium 2.17 onwards.

Example

            
                from browsermobproxy import Server
                server = Server("path/to/browsermob-proxy")
                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

                proxy.stop()
                driver.quit()
            
        

Releases

0.7.0

0.6.0

0.5.0

0.4.0

0.2.0

0.1.0

0.0.1

Fork me on GitHub