PlaywrightCapture 1.27.2__tar.gz → 1.27.4__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PlaywrightCapture
3
- Version: 1.27.2
3
+ Version: 1.27.4
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
@@ -22,7 +22,7 @@ Classifier: Topic :: Security
22
22
  Provides-Extra: recaptcha
23
23
  Requires-Dist: SpeechRecognition (>=3.11.0) ; extra == "recaptcha"
24
24
  Requires-Dist: aiohttp-socks (>=0.9,<0.10)
25
- Requires-Dist: aiohttp[speedups] (>=3.11.7,<4.0.0)
25
+ Requires-Dist: aiohttp[speedups] (>=3.11.9,<4.0.0)
26
26
  Requires-Dist: async-timeout (>=4.0.3,<5.0.0) ; python_version < "3.11"
27
27
  Requires-Dist: beautifulsoup4[charset-normalizer,lxml] (>=4.12.3,<5.0.0)
28
28
  Requires-Dist: dateparser (>=1.2.0,<2.0.0)
@@ -484,7 +484,7 @@ class Capture():
484
484
  # See https://github.com/microsoft/playwright/issues/16577
485
485
  chromium_permissions = [
486
486
  'accelerometer',
487
- 'accessibility-events',
487
+ # 'accessibility-events', # broken in v1.49 - https://github.com/microsoft/playwright-python/issues/2663
488
488
  'ambient-light-sensor',
489
489
  'background-sync',
490
490
  'camera',
@@ -762,7 +762,8 @@ class Capture():
762
762
  page: Page | None=None, depth: int=0,
763
763
  rendered_hostname_only: bool=True,
764
764
  with_favicon: bool=False,
765
- allow_tracking: bool=False
765
+ allow_tracking: bool=False,
766
+ clock_set: bool=False
766
767
  ) -> CaptureResponse:
767
768
 
768
769
  to_return: CaptureResponse = {}
@@ -1097,7 +1098,8 @@ class Capture():
1097
1098
  url=url, referer=page.url,
1098
1099
  page=page, depth=depth,
1099
1100
  rendered_hostname_only=rendered_hostname_only,
1100
- max_depth_capture_time=max_capture_time)
1101
+ max_depth_capture_time=max_capture_time,
1102
+ clock_set=clock_set)
1101
1103
  to_return['children'].append(child_capture) # type: ignore[union-attr]
1102
1104
  except (TimeoutError, asyncio.TimeoutError):
1103
1105
  self.logger.info(f'Timeout error, took more than {max_capture_time}s. Unable to capture {url}.')
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "PlaywrightCapture"
3
- version = "1.27.2"
3
+ version = "1.27.4"
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"
@@ -30,7 +30,7 @@ playwright-stealth = "^1.0.6"
30
30
  setuptools = "^75.6.0"
31
31
  puremagic = "^1.28"
32
32
  async-timeout = {version = "^4.0.3", python = "<3.11"}
33
- aiohttp = {version = "^3.11.7", extras = ["speedups"]}
33
+ aiohttp = {version = "^3.11.9", extras = ["speedups"]}
34
34
  aiohttp-socks = "^0.9"
35
35
 
36
36
  [tool.poetry.extras]
@@ -41,7 +41,7 @@ optional = true
41
41
 
42
42
  [tool.poetry.group.dev.dependencies]
43
43
  types-beautifulsoup4 = "^4.12.0.20241020"
44
- pytest = "^8.3.3"
44
+ pytest = "^8.3.4"
45
45
  mypy = "^1.13.0"
46
46
  types-dateparser = "^1.2.0.20240420"
47
47
  types-pytz = "^2024.2.0.20241003"