commented out debugging code
This commit is contained in:
parent
61e774fa97
commit
76c26b99bc
|
@ -270,13 +270,13 @@ class HpeConfiguratorParser():
|
||||||
db_as_json_str = db_jscript[start_match.end(): end_match.start()]
|
db_as_json_str = db_jscript[start_match.end(): end_match.start()]
|
||||||
# print(db_as_json_str[0:20])
|
# print(db_as_json_str[0:20])
|
||||||
# print(db_as_json_str[-20:-1])
|
# print(db_as_json_str[-20:-1])
|
||||||
with open('toto.json', 'w') as f:
|
# with open('toto.json', 'w') as f:
|
||||||
f.write(db_as_json_str)
|
# f.write(db_as_json_str)
|
||||||
db = json.loads(db_as_json_str)
|
db = json.loads(db_as_json_str)
|
||||||
hardware_db = HpeConfiguratorParser._find_child_with_id(db["configResponse"]["configuration"]["topLevels"], 'hardware')['subCategories']
|
hardware_db = HpeConfiguratorParser._find_child_with_id(db["configResponse"]["configuration"]["topLevels"], 'hardware')['subCategories']
|
||||||
# print(hardware_db)
|
# print(hardware_db)
|
||||||
with open(hpe_configurator_html_file_path.with_suffix('.json'), 'w', encoding='utf-8') as f:
|
# with open(hpe_configurator_html_file_path.with_suffix('.json'), 'w', encoding='utf-8') as f:
|
||||||
json.dump(hardware_db, f, ensure_ascii=False, indent=4)
|
# json.dump(hardware_db, f, ensure_ascii=False, indent=4)
|
||||||
return hardware_db
|
return hardware_db
|
||||||
|
|
||||||
def create_catalog_parser(self, hpe_catalog):
|
def create_catalog_parser(self, hpe_catalog):
|
||||||
|
|
Loading…
Reference in New Issue