lacuscore 1.7.7__tar.gz → 1.7.8__tar.gz
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.
- {lacuscore-1.7.7 → lacuscore-1.7.8}/PKG-INFO +1 -1
- {lacuscore-1.7.7 → lacuscore-1.7.8}/lacuscore/lacuscore.py +4 -1
- {lacuscore-1.7.7 → lacuscore-1.7.8}/pyproject.toml +3 -3
- {lacuscore-1.7.7 → lacuscore-1.7.8}/LICENSE +0 -0
- {lacuscore-1.7.7 → lacuscore-1.7.8}/README.md +0 -0
- {lacuscore-1.7.7 → lacuscore-1.7.8}/lacuscore/__init__.py +0 -0
- {lacuscore-1.7.7 → lacuscore-1.7.8}/lacuscore/lacus_monitoring.py +0 -0
- {lacuscore-1.7.7 → lacuscore-1.7.8}/lacuscore/py.typed +0 -0
@@ -721,6 +721,9 @@ class LacusCore():
|
|
721
721
|
hash_to_set['cookies'] = pickle.dumps(results['cookies'])
|
722
722
|
if results.get('potential_favicons'):
|
723
723
|
hash_to_set['potential_favicons'] = pickle.dumps(results['potential_favicons'])
|
724
|
+
if results.get('html') and results['html'] is not None:
|
725
|
+
# Need to avoid unicode encore errors, and surrogates are not allowed
|
726
|
+
hash_to_set['html'] = results['html'].encode('utf-8', 'surrogateescape')
|
724
727
|
if 'children' in results and results['children'] is not None:
|
725
728
|
padding_length = len(str(len(results['children'])))
|
726
729
|
children = set()
|
@@ -735,7 +738,7 @@ class LacusCore():
|
|
735
738
|
hash_to_set['children'] = pickle.dumps(children)
|
736
739
|
|
737
740
|
for key in results.keys():
|
738
|
-
if key in ['har', 'cookies', 'potential_favicons', 'children'] or not results.get(key):
|
741
|
+
if key in ['har', 'cookies', 'potential_favicons', 'html', 'children'] or not results.get(key):
|
739
742
|
continue
|
740
743
|
# these entries can be stored directly
|
741
744
|
hash_to_set[key] = results[key] # type: ignore
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "lacuscore"
|
3
|
-
version = "1.7.
|
3
|
+
version = "1.7.8"
|
4
4
|
description = "Core of Lacus, usable as a module"
|
5
5
|
authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
|
6
6
|
license = "BSD-3-Clause"
|
@@ -44,14 +44,14 @@ docs = ["Sphinx"]
|
|
44
44
|
[tool.poetry.group.dev.dependencies]
|
45
45
|
types-redis = {version = "^4.6.0.11"}
|
46
46
|
mypy = "^1.8.0"
|
47
|
-
types-requests = "^2.31.0.
|
47
|
+
types-requests = "^2.31.0.20231231"
|
48
48
|
types-beautifulsoup4 = "^4.12.0.7"
|
49
49
|
ipython = [
|
50
50
|
{version = "<8.13.0", python = "<3.9"},
|
51
51
|
{version = "^8.18.0", python = ">=3.9"},
|
52
52
|
{version = "^8.19.0", python = ">=3.10"}
|
53
53
|
]
|
54
|
-
pytest = "^7.4.
|
54
|
+
pytest = "^7.4.4"
|
55
55
|
|
56
56
|
[build-system]
|
57
57
|
requires = ["poetry_core"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|