with open('b.har', 'r') as f: har_page = HarPage('page_1', har_data=json.loads(f.read())) ### WORK WITH LOAD TIMES (all load times are in ms) ### # Link http://pythonhosted.org/haralyzer/haralyzer.html entries = har_page.filter_entries() #print(entries) print(har_page.get_total_size(entries)) print(har_page.get_load_time(request_type='GET')) print(har_page.total_load_time(request_type='GET')) ''' # Audio Load Time print(har_page.audio_load_time) #Video Load Time print(har_page.video_load_time) #JS Load Time print(har_page.js_load_time) #Hostname print(har_page.hostname) #Initial Load Time - Load time for the first non-redirect page print(har_page.initial_load_time)