pylookyloo 1.31.2__tar.gz → 1.32.1__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.

Potentially problematic release.


This version of pylookyloo might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pylookyloo
3
- Version: 1.31.2
3
+ Version: 1.32.1
4
4
  Summary: Python CLI and module for Lookyloo
5
5
  License: GPL-2.0-or-later
6
6
  Author: Raphaël Vinot
@@ -24,8 +24,8 @@ Classifier: Topic :: Security
24
24
  Provides-Extra: docs
25
25
  Provides-Extra: examples
26
26
  Requires-Dist: Sphinx (>=8.2.3) ; (python_version >= "3.11") and (extra == "docs")
27
- Requires-Dist: pylacus (>=1.15.1) ; extra == "examples"
28
- Requires-Dist: requests (>=2.32.4)
27
+ Requires-Dist: pylacus (>=1.17.1) ; extra == "examples"
28
+ Requires-Dist: requests (>=2.32.5)
29
29
  Project-URL: Documentation, https://pylookyloo.readthedocs.io/en/latest/
30
30
  Project-URL: Repository, https://github.com/lookyloo/PyLookyloo
31
31
  Project-URL: issues, https://github.com/lookyloo/PyLookyloo/issues
@@ -72,6 +72,7 @@ class CaptureSettings(TypedDict, total=False):
72
72
  locale: str | None
73
73
  color_scheme: str | None
74
74
  java_script_enabled: bool
75
+ with_trusted_timestamps: bool
75
76
  headless: bool
76
77
  viewport: dict[str, int] | None
77
78
  referer: str | None
@@ -89,7 +90,7 @@ class CompareSettings(TypedDict, total=False):
89
90
 
90
91
  class Lookyloo():
91
92
 
92
- def __init__(self, root_url: str='https://lookyloo.circl.lu/', useragent: str | None=None,
93
+ def __init__(self, root_url: str | None=None, useragent: str | None=None,
93
94
  *, proxies: dict[str, str] | None=None, verify: bool | str=True) -> None:
94
95
  '''Query a specific lookyloo instance.
95
96
 
@@ -97,7 +98,7 @@ class Lookyloo():
97
98
  :param useragent: The User Agent used by requests to run the HTTP requests against Lookyloo, it is *not* passed to the captures.
98
99
  :param proxies: The proxies to use to connect to lookyloo (not the ones given to the capture itself) - More details: https://requests.readthedocs.io/en/latest/user/advanced/#proxies
99
100
  '''
100
- self.root_url = root_url
101
+ self.root_url = root_url if root_url else 'https://lookyloo.circl.lu/'
101
102
  self.apikey: str | None = None
102
103
 
103
104
  if not urlparse(self.root_url).scheme:
@@ -189,6 +190,7 @@ class Lookyloo():
189
190
  locale: str | None=None,
190
191
  color_scheme: str | None=None,
191
192
  java_script_enabled: bool=True,
193
+ with_trusted_timestamps: bool=False,
192
194
  headless: bool=True,
193
195
  viewport: dict[str, int] | None=None,
194
196
  referer: str | None=None,
@@ -215,6 +217,7 @@ class Lookyloo():
215
217
  locale: str | None=None,
216
218
  color_scheme: str | None=None,
217
219
  java_script_enabled: bool | None=None,
220
+ with_trusted_timestamps: bool=False,
218
221
  headless: bool=True,
219
222
  viewport: dict[str, int] | None=None,
220
223
  referer: str | None=None,
@@ -244,6 +247,7 @@ class Lookyloo():
244
247
  :param locale: The locale of the browser
245
248
  :param color_scheme: The prefered color scheme of the browser (light or dark)
246
249
  :param java_script_enabled: If False, no JS will run during the capture.
250
+ :param with_trusted_timestamps: If True, and a trusted timestamp provider is configured, trigger a request for trusted timestamps for forensic archival.
247
251
  :param headless: If False, the browser will be headed, it requires the capture to be done on a desktop.
248
252
  :param viewport: The viewport of the browser used for capturing
249
253
  :param referer: The referer URL for the capture
@@ -300,6 +304,8 @@ class Lookyloo():
300
304
  to_send['color_scheme'] = color_scheme
301
305
  if java_script_enabled is not None:
302
306
  to_send['java_script_enabled'] = java_script_enabled
307
+ if with_trusted_timestamps is not None:
308
+ to_send['with_trusted_timestamps'] = with_trusted_timestamps
303
309
  if headless is not None:
304
310
  to_send['headless'] = headless
305
311
  if viewport:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pylookyloo"
3
- version = "1.31.2"
3
+ version = "1.32.1"
4
4
  description = "Python CLI and module for Lookyloo"
5
5
  authors = [
6
6
  {name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
@@ -12,7 +12,7 @@ requires-python = ">=3.9"
12
12
  dynamic = [ "classifiers" ]
13
13
 
14
14
  dependencies = [
15
- "requests (>=2.32.4)"
15
+ "requests (>=2.32.5)"
16
16
  ]
17
17
 
18
18
  [project.urls]
@@ -37,12 +37,12 @@ lookyloo = 'pylookyloo:main'
37
37
 
38
38
  [project.optional-dependencies]
39
39
  docs = ["Sphinx (>=8.2.3) ; python_version >= \"3.11\""]
40
- examples = ["pylacus (>=1.15.1)"]
40
+ examples = ["pylacus (>=1.17.1)"]
41
41
 
42
42
  [tool.poetry.group.dev.dependencies]
43
- mypy = "^1.16.1"
44
- types-requests = "^2.32.4.20250611"
45
- pytest = "^8.4.1"
43
+ mypy = "^1.17.1"
44
+ types-requests = "^2.32.4.20250809"
45
+ pytest = "^8.4.2"
46
46
 
47
47
  [build-system]
48
48
  requires = ["poetry-core>=2.0"]
File without changes
File without changes