har2tree 1.31.1__py3-none-any.whl → 1.31.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- har2tree/helper.py +7 -2
- {har2tree-1.31.1.dist-info → har2tree-1.31.2.dist-info}/METADATA +1 -1
- {har2tree-1.31.1.dist-info → har2tree-1.31.2.dist-info}/RECORD +5 -5
- {har2tree-1.31.1.dist-info → har2tree-1.31.2.dist-info}/LICENSE +0 -0
- {har2tree-1.31.1.dist-info → har2tree-1.31.2.dist-info}/WHEEL +0 -0
har2tree/helper.py
CHANGED
|
@@ -385,8 +385,13 @@ def find_external_ressources(mimetype: str, data: bytes, base_url: str, all_requ
|
|
|
385
385
|
else:
|
|
386
386
|
external_ressources['css'].append(url)
|
|
387
387
|
else:
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
try:
|
|
389
|
+
soup = make_soup(data)
|
|
390
|
+
string_soup = str(soup)
|
|
391
|
+
except Exception as e:
|
|
392
|
+
logger.warning(f'Unable to parse HTML blob: {e}')
|
|
393
|
+
string_soup = ''
|
|
394
|
+
|
|
390
395
|
if not string_soup:
|
|
391
396
|
# Empty HTML document, nothing to do
|
|
392
397
|
return external_ressources, embedded_ressources
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
har2tree/__init__.py,sha256=Na3mxHkUBq3rzYbxiLNJF37DxH5mcghSorjzXw5Teug,422
|
|
2
2
|
har2tree/har2tree.py,sha256=47x9X5tY69f9SXkYJgJsnAaX2kxgXHgzFThGz6M86Zw,44495
|
|
3
|
-
har2tree/helper.py,sha256=
|
|
3
|
+
har2tree/helper.py,sha256=kr-bGP3veZ74CRadFziMYPXrKnBiZxI10ZVci9fAsRs,20684
|
|
4
4
|
har2tree/nodes.py,sha256=CC3NseEaM455JOpPqjfTAQ-dwWiGWmzlceGSSeTwoRo,28951
|
|
5
5
|
har2tree/parser.py,sha256=4yej1OcVYAIiLfzYZsO9WCw3WyM_ykDTuvpW7UO1ROE,3645
|
|
6
6
|
har2tree/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
har2tree-1.31.
|
|
8
|
-
har2tree-1.31.
|
|
9
|
-
har2tree-1.31.
|
|
10
|
-
har2tree-1.31.
|
|
7
|
+
har2tree-1.31.2.dist-info/LICENSE,sha256=Xa4EVROgJsEo10CW-ISCRiw0TtqdKz1JuM3BBLBM55c,1803
|
|
8
|
+
har2tree-1.31.2.dist-info/METADATA,sha256=evAT2CmrpM4n8dSb614etEL1F8ySO2NRBgq4zU5FEx8,2112
|
|
9
|
+
har2tree-1.31.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
10
|
+
har2tree-1.31.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|