API reference

exception har2tree.Har2TreeError(message: str)
class har2tree.HarTreeNode(capture_uuid: str)
to_dict() MutableMapping[str, Any]

Make a dict that can then be dumped in json.

to_json() str

Make d3js compatible json

class har2tree.HostNode(capture_uuid: str)
add_url(url: URLNode) None

Add a URL node to the Host node, initialize/update the features

property mixed_content: bool

Is there http and https URL Nodes

Number of unique cookies sent in the requests of all the URL nodes

Number of unique cookies received in the responses of all the URL nodes

property third_party_cookies_received: int

Number of unique 3rd party cookies received in the responses of all the URL nodes

to_dict() MutableMapping[str, Any]

Make a dictionary that is json dumpable for d3js

property urls_count: int

Number of URLs

class har2tree.URLNode(capture_uuid: str)
load_har_entry(har_entry: MutableMapping[str, Any], all_requests: list[str]) None

Load one entry of the HAR file, initialize most of the features of the node