PlaywrightCapture 1.26.3__py3-none-any.whl → 1.27.0__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 -7
- {playwrightcapture-1.26.3.dist-info → playwrightcapture-1.27.0.dist-info}/METADATA +5 -9
- {playwrightcapture-1.26.3.dist-info → playwrightcapture-1.27.0.dist-info}/RECORD +5 -5
- {playwrightcapture-1.26.3.dist-info → playwrightcapture-1.27.0.dist-info}/LICENSE +0 -0
- {playwrightcapture-1.26.3.dist-info → playwrightcapture-1.27.0.dist-info}/WHEEL +0 -0
playwrightcapture/capture.py
CHANGED
@@ -17,7 +17,8 @@ from dataclasses import dataclass
|
|
17
17
|
from io import BytesIO
|
18
18
|
from logging import LoggerAdapter, Logger
|
19
19
|
from tempfile import NamedTemporaryFile
|
20
|
-
from typing import Any, TypedDict, Literal, TYPE_CHECKING
|
20
|
+
from typing import Any, TypedDict, Literal, TYPE_CHECKING
|
21
|
+
from collections.abc import MutableMapping, Generator
|
21
22
|
from urllib.parse import urlparse, unquote, urljoin, urlsplit, urlunsplit
|
22
23
|
from zipfile import ZipFile
|
23
24
|
|
@@ -38,11 +39,8 @@ from w3lib.url import canonicalize_url, safe_url_string
|
|
38
39
|
|
39
40
|
from .exceptions import UnknownPlaywrightBrowser, UnknownPlaywrightDevice, InvalidPlaywrightParameter
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
else:
|
44
|
-
from zoneinfo import available_timezones
|
45
|
-
all_timezones_set = available_timezones()
|
42
|
+
from zoneinfo import available_timezones
|
43
|
+
all_timezones_set = available_timezones()
|
46
44
|
|
47
45
|
if sys.version_info < (3, 11):
|
48
46
|
from async_timeout import timeout
|
@@ -104,7 +102,7 @@ class PlaywrightCaptureLogAdapter(LoggerAdapter): # type: ignore[type-arg]
|
|
104
102
|
class PCStealthConfig(StealthConfig): # type: ignore[misc]
|
105
103
|
|
106
104
|
@property
|
107
|
-
def enabled_scripts(self) -> Generator[str
|
105
|
+
def enabled_scripts(self) -> Generator[str]:
|
108
106
|
self.chrome_app = True
|
109
107
|
self.chrome_csi = True
|
110
108
|
self.chrome_runtime = True
|
@@ -1,18 +1,17 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: PlaywrightCapture
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.27.0
|
4
4
|
Summary: A simple library to capture websites using playwright
|
5
5
|
Home-page: https://github.com/Lookyloo/PlaywrightCapture
|
6
6
|
License: BSD-3-Clause
|
7
7
|
Author: Raphaël Vinot
|
8
8
|
Author-email: raphael.vinot@circl.lu
|
9
|
-
Requires-Python: >=3.
|
9
|
+
Requires-Python: >=3.9,<4.0
|
10
10
|
Classifier: Environment :: Console
|
11
11
|
Classifier: Intended Audience :: Science/Research
|
12
12
|
Classifier: Intended Audience :: Telecommunications Industry
|
13
13
|
Classifier: License :: OSI Approved :: BSD License
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
15
|
-
Classifier: Programming Language :: Python :: 3.8
|
16
15
|
Classifier: Programming Language :: Python :: 3.9
|
17
16
|
Classifier: Programming Language :: Python :: 3.10
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
@@ -21,11 +20,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
21
20
|
Classifier: Topic :: Internet
|
22
21
|
Classifier: Topic :: Security
|
23
22
|
Provides-Extra: recaptcha
|
24
|
-
Requires-Dist: SpeechRecognition (
|
25
|
-
Requires-Dist: SpeechRecognition (>=3.11) ; (python_version >= "3.9") and (extra == "recaptcha")
|
23
|
+
Requires-Dist: SpeechRecognition (>=3.11.0) ; extra == "recaptcha"
|
26
24
|
Requires-Dist: aiohttp-socks (>=0.9,<0.10)
|
27
|
-
Requires-Dist: aiohttp[speedups] (
|
28
|
-
Requires-Dist: aiohttp[speedups] (>=3.10.10,<4.0.0) ; python_version >= "3.9"
|
25
|
+
Requires-Dist: aiohttp[speedups] (>=3.10.10,<4.0.0)
|
29
26
|
Requires-Dist: async-timeout (>=4.0.3,<5.0.0) ; python_version < "3.11"
|
30
27
|
Requires-Dist: beautifulsoup4[charset-normalizer,lxml] (>=4.12.3,<5.0.0)
|
31
28
|
Requires-Dist: dateparser (>=1.2.0,<2.0.0)
|
@@ -33,8 +30,7 @@ Requires-Dist: playwright (>=1.48.0,<2.0.0)
|
|
33
30
|
Requires-Dist: playwright-stealth (>=1.0.6,<2.0.0)
|
34
31
|
Requires-Dist: puremagic (>=1.28,<2.0)
|
35
32
|
Requires-Dist: pydub (>=0.25.1,<0.26.0) ; extra == "recaptcha"
|
36
|
-
Requires-Dist:
|
37
|
-
Requires-Dist: setuptools (>=75.2.0,<76.0.0)
|
33
|
+
Requires-Dist: setuptools (>=75.3.0,<76.0.0)
|
38
34
|
Requires-Dist: tzdata (>=2024.2,<2025.0)
|
39
35
|
Requires-Dist: w3lib (>=2.2.1,<3.0.0)
|
40
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=bv36gF395DPKgzrrHdZzYFhHpJ7G6XR5HrbJD3_i2Bs,80107
|
3
3
|
playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
|
4
4
|
playwrightcapture/helpers.py,sha256=SXQLEuxMs8-bcWykMiUVosHzzxBKuS-QC0gBV3OmKmo,1764
|
5
5
|
playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
playwrightcapture-1.
|
7
|
-
playwrightcapture-1.
|
8
|
-
playwrightcapture-1.
|
9
|
-
playwrightcapture-1.
|
6
|
+
playwrightcapture-1.27.0.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
|
7
|
+
playwrightcapture-1.27.0.dist-info/METADATA,sha256=AozzEdcyI4fDv1mqf5RgyWFi3yPN5hYhkxBQ0ka6hks,3102
|
8
|
+
playwrightcapture-1.27.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
9
|
+
playwrightcapture-1.27.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|