lacuscore 1.13.6__py3-none-any.whl → 1.13.7__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.
- lacuscore/helpers.py +1 -0
- lacuscore/lacuscore.py +6 -1
- {lacuscore-1.13.6.dist-info → lacuscore-1.13.7.dist-info}/METADATA +2 -2
- lacuscore-1.13.7.dist-info/RECORD +10 -0
- lacuscore-1.13.6.dist-info/RECORD +0 -10
- {lacuscore-1.13.6.dist-info → lacuscore-1.13.7.dist-info}/LICENSE +0 -0
- {lacuscore-1.13.6.dist-info → lacuscore-1.13.7.dist-info}/WHEEL +0 -0
lacuscore/helpers.py
CHANGED
@@ -128,6 +128,7 @@ class CaptureSettings(BaseModel):
|
|
128
128
|
java_script_enabled: bool = True
|
129
129
|
viewport: dict[str, int] | None = None
|
130
130
|
referer: str | None = None
|
131
|
+
with_screenshot: bool = True
|
131
132
|
with_favicon: bool = True
|
132
133
|
allow_tracking: bool = False
|
133
134
|
headless: bool = True
|
lacuscore/lacuscore.py
CHANGED
@@ -144,6 +144,7 @@ class LacusCore():
|
|
144
144
|
viewport: dict[str, int] | None=None,
|
145
145
|
referer: str | None=None,
|
146
146
|
rendered_hostname_only: bool=True,
|
147
|
+
with_screenshot: bool=True,
|
147
148
|
with_favicon: bool=False,
|
148
149
|
allow_tracking: bool=False,
|
149
150
|
headless: bool=True,
|
@@ -176,6 +177,7 @@ class LacusCore():
|
|
176
177
|
viewport: dict[str, int] | None=None,
|
177
178
|
referer: str | None=None,
|
178
179
|
rendered_hostname_only: bool=True,
|
180
|
+
with_screenshot: bool=True,
|
179
181
|
with_favicon: bool=False,
|
180
182
|
allow_tracking: bool=False,
|
181
183
|
headless: bool=True,
|
@@ -210,6 +212,7 @@ class LacusCore():
|
|
210
212
|
:param viewport: The viewport of the browser used for capturing
|
211
213
|
:param referer: The referer URL for the capture
|
212
214
|
:param rendered_hostname_only: If depth > 0: only capture URLs with the same hostname as the rendered page
|
215
|
+
:param with_screenshot: If False, PlaywrightCapture won't take a screenshot of the rendered URL
|
213
216
|
:param with_favicon: If True, PlaywrightCapture will attempt to get the potential favicons for the rendered URL. It is a dirty trick, see this issue for details: https://github.com/Lookyloo/PlaywrightCapture/issues/45
|
214
217
|
:param allow_tracking: If True, PlaywrightCapture will attempt to click through the cookie banners. It is totally dependent on the framework used on the website.
|
215
218
|
:param headless: Whether to run the browser in headless mode. WARNING: requires to run in a graphical environment.
|
@@ -232,7 +235,8 @@ class LacusCore():
|
|
232
235
|
'http_credentials': http_credentials, 'geolocation': geolocation,
|
233
236
|
'timezone_id': timezone_id, 'locale': locale,
|
234
237
|
'color_scheme': color_scheme, 'java_script_enabled': java_script_enabled,
|
235
|
-
'viewport': viewport, 'referer': referer,
|
238
|
+
'viewport': viewport, 'referer': referer,
|
239
|
+
'with_screenshot': with_screenshot, 'with_favicon': with_favicon,
|
236
240
|
'allow_tracking': allow_tracking,
|
237
241
|
# Quietly force it to true if headed is not allowed.
|
238
242
|
'headless': headless if self.headed_allowed else True,
|
@@ -530,6 +534,7 @@ class LacusCore():
|
|
530
534
|
url, referer=to_capture.referer,
|
531
535
|
depth=to_capture.depth,
|
532
536
|
rendered_hostname_only=to_capture.rendered_hostname_only,
|
537
|
+
with_screenshot=to_capture.with_screenshot,
|
533
538
|
with_favicon=to_capture.with_favicon,
|
534
539
|
allow_tracking=to_capture.allow_tracking,
|
535
540
|
max_depth_capture_time=self.max_capture_time)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: lacuscore
|
3
|
-
Version: 1.13.
|
3
|
+
Version: 1.13.7
|
4
4
|
Summary: Core of Lacus, usable as a module
|
5
5
|
License: BSD-3-Clause
|
6
6
|
Author: Raphaël Vinot
|
@@ -26,7 +26,7 @@ Requires-Dist: async-timeout (>=5.0.1) ; python_version < "3.11"
|
|
26
26
|
Requires-Dist: defang (>=0.5.3)
|
27
27
|
Requires-Dist: dnspython (>=2.7.0)
|
28
28
|
Requires-Dist: eval-type-backport (>=0.2.2) ; python_version < "3.10"
|
29
|
-
Requires-Dist: playwrightcapture[recaptcha] (>=1.28.
|
29
|
+
Requires-Dist: playwrightcapture[recaptcha] (>=1.28.3)
|
30
30
|
Requires-Dist: pydantic (>=2.10.6)
|
31
31
|
Requires-Dist: redis[hiredis] (>=5.2.1)
|
32
32
|
Requires-Dist: requests (>=2.32.3)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
+
lacuscore/helpers.py,sha256=wIsST5RA2Rxh3OirQSKyLlQltpdd-PMxLGlYzHdOkGI,14209
|
3
|
+
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
|
+
lacuscore/lacuscore.py,sha256=5FjgWsGWpUamgdSMaMtkdAl-ptFWLtiC2-_goP-TJ18,42570
|
5
|
+
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
lacuscore/task_logger.py,sha256=2wDotU6r6vn-aKO8nZNdxSuisSj11LlcxuvW60qPL0Y,1909
|
7
|
+
lacuscore-1.13.7.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
+
lacuscore-1.13.7.dist-info/METADATA,sha256=wMcmCH5zFOBtlRcMEBfmGIaGZ2V5UfRPL9-QW9vuQSM,2647
|
9
|
+
lacuscore-1.13.7.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
10
|
+
lacuscore-1.13.7.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
-
lacuscore/helpers.py,sha256=XAu06V_GUn6_naf3ZfgGWsRe-hpYcnIU-HL4qXHPsm8,14176
|
3
|
-
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
|
-
lacuscore/lacuscore.py,sha256=bSnCwrRPn7pwnd33kzdTQ7hajhpwg-3TaDKtuT7Cbzg,42242
|
5
|
-
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
lacuscore/task_logger.py,sha256=2wDotU6r6vn-aKO8nZNdxSuisSj11LlcxuvW60qPL0Y,1909
|
7
|
-
lacuscore-1.13.6.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
-
lacuscore-1.13.6.dist-info/METADATA,sha256=jkrOMLcaMydBrDey5xql6s5YoWpmSwQSaCxz30ZQoUk,2647
|
9
|
-
lacuscore-1.13.6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
10
|
-
lacuscore-1.13.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|