diff --git a/har_parser.py b/har_parser.py index c1a6bee..3001027 100644 --- a/har_parser.py +++ b/har_parser.py @@ -2,6 +2,7 @@ import json from urllib.parse import urlparse, parse_qs data = {} +names = {} def main(): """ @@ -102,6 +103,9 @@ def main(): part_key = part_element.get('key') part_file = part_element.get('file') + if part_key is not None: + names[part_key] = part_file + # At this point, part_key and part_file are available. # The user has not specified what to do with them yet. # For example, to print them: