PlaywrightCapture 1.26.3__tar.gz → 1.27.0__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.
@@ -1,18 +1,17 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PlaywrightCapture
3
- Version: 1.26.3
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.8,<4.0
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 (<3.11) ; (python_version < "3.9") and (extra == "recaptcha")
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] (<3.11) ; python_version < "3.9"
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: pytz (>=2024.2,<2025.0) ; python_version < "3.9"
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
@@ -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, MutableMapping, Generator
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
- if sys.version_info < (3, 9):
42
- from pytz import all_timezones_set
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, None, None]:
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,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "PlaywrightCapture"
3
- version = "1.26.3"
3
+ version = "1.27.0"
4
4
  description = "A simple library to capture websites using playwright"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"
@@ -18,26 +18,19 @@ classifiers=[
18
18
  ]
19
19
 
20
20
  [tool.poetry.dependencies]
21
- python = "^3.8"
21
+ python = "^3.9"
22
22
  playwright = "^1.48.0"
23
23
  dateparser = "^1.2.0"
24
24
  beautifulsoup4 = {version= "^4.12.3", extras = ["lxml", "charset_normalizer"]}
25
25
  w3lib = "^2.2.1"
26
26
  pydub = {version = "^0.25.1", optional = true}
27
- SpeechRecognition = [
28
- {version = "<3.11", python = "<3.9", optional = true},
29
- {version = ">=3.11", python = ">=3.9", optional = true}
30
- ]
31
- pytz = {"version" = "^2024.2", python = "<3.9"}
27
+ SpeechRecognition = {version = ">=3.11.0", optional = true}
32
28
  tzdata = "^2024.2"
33
29
  playwright-stealth = "^1.0.6"
34
- setuptools = "^75.2.0"
30
+ setuptools = "^75.3.0"
35
31
  puremagic = "^1.28"
36
32
  async-timeout = {version = "^4.0.3", python = "<3.11"}
37
- aiohttp = [
38
- {extras = ["speedups"], version = "<3.11", python = "<3.9"},
39
- {extras = ["speedups"], version = "^3.10.10", python = ">=3.9"}
40
- ]
33
+ aiohttp = {version = "^3.10.10", extras = ["speedups"]}
41
34
  aiohttp-socks = "^0.9"
42
35
 
43
36
  [tool.poetry.extras]