openwpm.utilities.platform_utils module

openwpm.utilities.platform_utils.get_configuration_string(manager_params, browser_params, versions)[source]

Construct a well-formatted string for {manager,browser}params

Constructs a pretty printed string of all parameters. The config dictionaries are split to try to avoid line wrapping for reasonably size terminal windows.

openwpm.utilities.platform_utils.get_firefox_binary_path()[source]

If ../../firefox-bin/firefox-bin or os.environ[“FIREFOX_BINARY”] exists, return it. Else, throw a RuntimeError.

openwpm.utilities.platform_utils.get_version()[source]

Return OpenWPM version tag/current commit and Firefox version

openwpm.utilities.platform_utils.parse_http_stack_trace_str(trace_str)[source]

Parse a stacktrace string and return an array of dict.