lacuscore 1.11.0__py3-none-any.whl → 1.11.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.
- lacuscore/helpers.py +1 -0
- lacuscore/lacuscore.py +6 -2
- {lacuscore-1.11.0.dist-info → lacuscore-1.11.2.dist-info}/METADATA +7 -5
- lacuscore-1.11.2.dist-info/RECORD +10 -0
- {lacuscore-1.11.0.dist-info → lacuscore-1.11.2.dist-info}/WHEEL +1 -1
- lacuscore-1.11.0.dist-info/RECORD +0 -10
- {lacuscore-1.11.0.dist-info → lacuscore-1.11.2.dist-info}/LICENSE +0 -0
lacuscore/helpers.py
CHANGED
@@ -99,6 +99,7 @@ class CaptureSettings(BaseModel):
|
|
99
99
|
timezone_id: str | None = None
|
100
100
|
locale: str | None = None
|
101
101
|
color_scheme: str | None = None
|
102
|
+
java_script_enabled: bool = True
|
102
103
|
viewport: dict[str, int] | None = None
|
103
104
|
referer: str | None = None
|
104
105
|
with_favicon: bool = True
|
lacuscore/lacuscore.py
CHANGED
@@ -131,6 +131,7 @@ class LacusCore():
|
|
131
131
|
timezone_id: str | None=None,
|
132
132
|
locale: str | None=None,
|
133
133
|
color_scheme: str | None=None,
|
134
|
+
java_script_enabled: bool=True,
|
134
135
|
viewport: dict[str, int] | None=None,
|
135
136
|
referer: str | None=None,
|
136
137
|
rendered_hostname_only: bool=True,
|
@@ -159,6 +160,7 @@ class LacusCore():
|
|
159
160
|
timezone_id: str | None=None,
|
160
161
|
locale: str | None=None,
|
161
162
|
color_scheme: str | None=None,
|
163
|
+
java_script_enabled: bool=True,
|
162
164
|
viewport: dict[str, int] | None=None,
|
163
165
|
referer: str | None=None,
|
164
166
|
rendered_hostname_only: bool=True,
|
@@ -189,6 +191,7 @@ class LacusCore():
|
|
189
191
|
:param timezone_id: The timezone of the browser to pass to the capture
|
190
192
|
:param locale: The locale of the browser to pass to the capture
|
191
193
|
:param color_scheme: The prefered color scheme of the browser to pass to the capture
|
194
|
+
:param java_script_enabled: If False, javascript will be disabled when rendering the page
|
192
195
|
:param viewport: The viewport of the browser used for capturing
|
193
196
|
:param referer: The referer URL for the capture
|
194
197
|
:param rendered_hostname_only: If depth > 0: only capture URLs with the same hostname as the rendered page
|
@@ -210,8 +213,8 @@ class LacusCore():
|
|
210
213
|
'cookies': cookies, 'headers': headers,
|
211
214
|
'http_credentials': http_credentials, 'geolocation': geolocation,
|
212
215
|
'timezone_id': timezone_id, 'locale': locale,
|
213
|
-
'color_scheme': color_scheme, '
|
214
|
-
'referer': referer, 'with_favicon': with_favicon,
|
216
|
+
'color_scheme': color_scheme, 'java_script_enabled': java_script_enabled,
|
217
|
+
'viewport': viewport, 'referer': referer, 'with_favicon': with_favicon,
|
215
218
|
'allow_tracking': allow_tracking}
|
216
219
|
|
217
220
|
try:
|
@@ -486,6 +489,7 @@ class LacusCore():
|
|
486
489
|
capture.timezone_id = to_capture.timezone_id # type: ignore[assignment]
|
487
490
|
capture.locale = to_capture.locale # type: ignore[assignment]
|
488
491
|
capture.color_scheme = to_capture.color_scheme # type: ignore[assignment]
|
492
|
+
capture.java_script_enabled = to_capture.java_script_enabled
|
489
493
|
|
490
494
|
# make sure the initialization doesn't take too long
|
491
495
|
init_timeout = max(self.max_capture_time / 10, 5)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lacuscore
|
3
|
-
Version: 1.11.
|
3
|
+
Version: 1.11.2
|
4
4
|
Summary: Core of Lacus, usable as a module
|
5
5
|
Home-page: https://github.com/ail-project/LacusCore
|
6
6
|
License: BSD-3-Clause
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
23
24
|
Classifier: Topic :: Internet
|
24
25
|
Classifier: Topic :: Security
|
25
26
|
Provides-Extra: docs
|
@@ -28,11 +29,12 @@ Requires-Dist: Sphinx (>=7.2,<8.0) ; (python_version >= "3.9" and python_version
|
|
28
29
|
Requires-Dist: Sphinx (>=8,<9) ; (python_version >= "3.10") and (extra == "docs")
|
29
30
|
Requires-Dist: async-timeout (>=4.0.3,<5.0.0) ; python_version < "3.11"
|
30
31
|
Requires-Dist: defang (>=0.5.3,<0.6.0)
|
31
|
-
Requires-Dist: dnspython (
|
32
|
+
Requires-Dist: dnspython (<2.7) ; python_version < "3.9"
|
33
|
+
Requires-Dist: dnspython (>=2.7,<3.0) ; python_version >= "3.9"
|
32
34
|
Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0) ; python_version < "3.10"
|
33
|
-
Requires-Dist: playwrightcapture[recaptcha] (>=1.26.
|
34
|
-
Requires-Dist: pydantic (>=2.9.
|
35
|
-
Requires-Dist: redis[hiredis] (>=5.
|
35
|
+
Requires-Dist: playwrightcapture[recaptcha] (>=1.26.2,<2.0.0)
|
36
|
+
Requires-Dist: pydantic (>=2.9.2,<3.0.0)
|
37
|
+
Requires-Dist: redis[hiredis] (>=5.1.1,<6.0.0)
|
36
38
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
37
39
|
Requires-Dist: ua-parser (>=0.18.0,<0.19.0)
|
38
40
|
Project-URL: Documentation, https://lacuscore.readthedocs.io/en/latest/
|
@@ -0,0 +1,10 @@
|
|
1
|
+
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
+
lacuscore/helpers.py,sha256=fABClUqkvFXP-T41X7LFC1raD9pLlbiT2Jn6nvuW934,10892
|
3
|
+
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
|
+
lacuscore/lacuscore.py,sha256=9zaMxMSIfr7DLclPczONWIDIVCKg43gE-9JxEH4ahjo,40446
|
5
|
+
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
lacuscore/task_logger.py,sha256=kWBThqfv_alu1YA3jEqP4GsqXIVKLbzyI7w14aJ2g9I,1908
|
7
|
+
lacuscore-1.11.2.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
+
lacuscore-1.11.2.dist-info/METADATA,sha256=IzhNF7OhcRG5WU8xA7iiGaVaZ0gQLzhYLdbVhfL3Bo4,2987
|
9
|
+
lacuscore-1.11.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
10
|
+
lacuscore-1.11.2.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
-
lacuscore/helpers.py,sha256=qAB_E1wVisl-YgN41zTD35PzJc0i_CoA1sPAb73gzck,10855
|
3
|
-
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
|
-
lacuscore/lacuscore.py,sha256=FHJTilZalxy3DHGyoe2PT8zK3i2-EIFf1w4nTNIpHpk,40127
|
5
|
-
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
lacuscore/task_logger.py,sha256=kWBThqfv_alu1YA3jEqP4GsqXIVKLbzyI7w14aJ2g9I,1908
|
7
|
-
lacuscore-1.11.0.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
-
lacuscore-1.11.0.dist-info/METADATA,sha256=CKD78ktUnhKdNA_IA82wplp9KJfTl980gVGUR3kqxnc,2857
|
9
|
-
lacuscore-1.11.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
10
|
-
lacuscore-1.11.0.dist-info/RECORD,,
|
File without changes
|