pylookyloo 1.31.0__tar.gz → 1.31.2__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.
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/PKG-INFO +1 -1
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/pylookyloo/api.py +3 -2
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/pyproject.toml +3 -3
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/LICENSE +0 -0
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/README.md +0 -0
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/pylookyloo/__init__.py +0 -0
- {pylookyloo-1.31.0 → pylookyloo-1.31.2}/pylookyloo/py.typed +0 -0
|
@@ -90,7 +90,7 @@ class CompareSettings(TypedDict, total=False):
|
|
|
90
90
|
class Lookyloo():
|
|
91
91
|
|
|
92
92
|
def __init__(self, root_url: str='https://lookyloo.circl.lu/', useragent: str | None=None,
|
|
93
|
-
*, proxies: dict[str, str] | None=None):
|
|
93
|
+
*, proxies: dict[str, str] | None=None, verify: bool | str=True) -> None:
|
|
94
94
|
'''Query a specific lookyloo instance.
|
|
95
95
|
|
|
96
96
|
:param root_url: URL of the instance to query.
|
|
@@ -110,6 +110,7 @@ class Lookyloo():
|
|
|
110
110
|
self.session.proxies.update(proxies)
|
|
111
111
|
retries = Retry(total=5, backoff_factor=0.1, status_forcelist=[500, 502, 503, 504])
|
|
112
112
|
self.session.mount('http://', HTTPAdapter(max_retries=retries))
|
|
113
|
+
self.session.verify = verify
|
|
113
114
|
|
|
114
115
|
@property
|
|
115
116
|
def is_up(self) -> bool:
|
|
@@ -461,7 +462,7 @@ class Lookyloo():
|
|
|
461
462
|
|
|
462
463
|
:param capture_uuid: UUID of the capture
|
|
463
464
|
'''
|
|
464
|
-
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('json', capture_uuid, '
|
|
465
|
+
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('json', capture_uuid, 'storage_state'))))
|
|
465
466
|
return r.json()
|
|
466
467
|
|
|
467
468
|
def get_html(self, capture_uuid: str) -> StringIO:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pylookyloo"
|
|
3
|
-
version = "1.31.
|
|
3
|
+
version = "1.31.2"
|
|
4
4
|
description = "Python CLI and module for Lookyloo"
|
|
5
5
|
authors = [
|
|
6
6
|
{name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
|
|
@@ -40,9 +40,9 @@ docs = ["Sphinx (>=8.2.3) ; python_version >= \"3.11\""]
|
|
|
40
40
|
examples = ["pylacus (>=1.15.1)"]
|
|
41
41
|
|
|
42
42
|
[tool.poetry.group.dev.dependencies]
|
|
43
|
-
mypy = "^1.16.
|
|
43
|
+
mypy = "^1.16.1"
|
|
44
44
|
types-requests = "^2.32.4.20250611"
|
|
45
|
-
pytest = "^8.4.
|
|
45
|
+
pytest = "^8.4.1"
|
|
46
46
|
|
|
47
47
|
[build-system]
|
|
48
48
|
requires = ["poetry-core>=2.0"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|