This program was mostly put together as a simple proof-of-concept for a friend.
- Python
-f/--file- Specify a [.har] file to be read-P/--no-pretty-print- Disable pretty-print (Default is to display pretty-printed JSON)
-T- Return bytes rx/tx for one or more sessions (.har files). (This is the default)
With pretty-print
$ python read.py \
-f har/sample01.har \
--file har/sample02.har \
-P
{'browser_tx': 49735, 'browser_rx': 3094292}Without pretty-print
$ python read.py \
-f har/sample01.har \
--file har/sample02.har
{
"browser_rx": 3094292,
"browser_tx": 49735
}