PlaywrightCapture 1.28.2__py3-none-any.whl → 1.28.3__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.
- playwrightcapture/capture.py +5 -2
- {playwrightcapture-1.28.2.dist-info → playwrightcapture-1.28.3.dist-info}/METADATA +4 -4
- {playwrightcapture-1.28.2.dist-info → playwrightcapture-1.28.3.dist-info}/RECORD +5 -5
- {playwrightcapture-1.28.2.dist-info → playwrightcapture-1.28.3.dist-info}/LICENSE +0 -0
- {playwrightcapture-1.28.2.dist-info → playwrightcapture-1.28.3.dist-info}/WHEEL +0 -0
playwrightcapture/capture.py
CHANGED
@@ -920,6 +920,7 @@ class Capture():
|
|
920
920
|
referer: str | None=None,
|
921
921
|
page: Page | None=None, depth: int=0,
|
922
922
|
rendered_hostname_only: bool=True,
|
923
|
+
with_screenshot: bool=True,
|
923
924
|
with_favicon: bool=False,
|
924
925
|
allow_tracking: bool=False,
|
925
926
|
clock_set: bool=False
|
@@ -1099,7 +1100,9 @@ class Capture():
|
|
1099
1100
|
self.logger.warning(f'Unable to get favicons: {e}')
|
1100
1101
|
|
1101
1102
|
to_return['last_redirected_url'] = page.url
|
1102
|
-
|
1103
|
+
|
1104
|
+
if with_screenshot:
|
1105
|
+
to_return['png'] = await self._failsafe_get_screenshot(page)
|
1103
1106
|
|
1104
1107
|
self._already_captured.add(url)
|
1105
1108
|
if depth > 0 and to_return.get('html') and to_return['html']:
|
@@ -1131,7 +1134,7 @@ class Capture():
|
|
1131
1134
|
page=page, depth=depth,
|
1132
1135
|
rendered_hostname_only=rendered_hostname_only,
|
1133
1136
|
max_depth_capture_time=max_capture_time,
|
1134
|
-
clock_set=clock_set)
|
1137
|
+
clock_set=clock_set, with_screenshot=with_screenshot)
|
1135
1138
|
to_return['children'].append(child_capture) # type: ignore[union-attr]
|
1136
1139
|
except (TimeoutError, asyncio.TimeoutError):
|
1137
1140
|
self.logger.info(f'Timeout error, took more than {max_capture_time}s. Unable to capture {url}.')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: PlaywrightCapture
|
3
|
-
Version: 1.28.
|
3
|
+
Version: 1.28.3
|
4
4
|
Summary: A simple library to capture websites using playwright
|
5
5
|
License: BSD-3-Clause
|
6
6
|
Author: Raphaël Vinot
|
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
18
18
|
Classifier: Topic :: Internet
|
19
19
|
Classifier: Topic :: Security
|
20
20
|
Provides-Extra: recaptcha
|
21
|
-
Requires-Dist: SpeechRecognition (>=3.14.
|
21
|
+
Requires-Dist: SpeechRecognition (>=3.14.2) ; extra == "recaptcha"
|
22
22
|
Requires-Dist: aiohttp-socks (>=0.10.1)
|
23
23
|
Requires-Dist: aiohttp[speedups] (>=3.11.14)
|
24
24
|
Requires-Dist: async-timeout (>=5.0.1) ; python_version < "3.11"
|
@@ -28,9 +28,9 @@ Requires-Dist: playwright (>=1.51.0)
|
|
28
28
|
Requires-Dist: playwright-stealth (>=1.0.6)
|
29
29
|
Requires-Dist: puremagic (>=1.28)
|
30
30
|
Requires-Dist: pydub (>=0.25.1) ; extra == "recaptcha"
|
31
|
-
Requires-Dist: setuptools (>=
|
31
|
+
Requires-Dist: setuptools (>=78.1.0)
|
32
32
|
Requires-Dist: typing-extensions (>=4.12.2,<5.0.0) ; python_version < "3.12"
|
33
|
-
Requires-Dist: tzdata (>=2025.
|
33
|
+
Requires-Dist: tzdata (>=2025.2)
|
34
34
|
Requires-Dist: w3lib (>=2.3.1)
|
35
35
|
Project-URL: Issues, https://github.com/Lookyloo/PlaywrightCapture/issues
|
36
36
|
Project-URL: Repository, https://github.com/Lookyloo/PlaywrightCapture
|
@@ -1,9 +1,9 @@
|
|
1
1
|
playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
|
2
|
-
playwrightcapture/capture.py,sha256=
|
2
|
+
playwrightcapture/capture.py,sha256=ep4zmE0HhV74Cr2iGWq16obQzkIg17wTiGHkEnq6YBc,81644
|
3
3
|
playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
|
4
4
|
playwrightcapture/helpers.py,sha256=Xqs09zHhzAWnpBtQ0A9YAxg80P3Lj7aBj5M2WuEr0so,1843
|
5
5
|
playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
playwrightcapture-1.28.
|
7
|
-
playwrightcapture-1.28.
|
8
|
-
playwrightcapture-1.28.
|
9
|
-
playwrightcapture-1.28.
|
6
|
+
playwrightcapture-1.28.3.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
|
7
|
+
playwrightcapture-1.28.3.dist-info/METADATA,sha256=lIke_K-KyemmKzUJ12uW0tz_0IwoWF9_KvIPJZGDP7k,3075
|
8
|
+
playwrightcapture-1.28.3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
9
|
+
playwrightcapture-1.28.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|