PlaywrightCapture 1.24.0__tar.gz → 1.24.2__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.24.0
3
+ Version: 1.24.2
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
@@ -20,10 +20,10 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Topic :: Internet
21
21
  Classifier: Topic :: Security
22
22
  Provides-Extra: recaptcha
23
- Requires-Dist: SpeechRecognition (>=3.10.2,<4.0.0) ; extra == "recaptcha"
23
+ Requires-Dist: SpeechRecognition (>=3.10.3,<4.0.0) ; extra == "recaptcha"
24
24
  Requires-Dist: beautifulsoup4[charset-normalizer,lxml] (>=4.12.3,<5.0.0)
25
25
  Requires-Dist: dateparser (>=1.2.0,<2.0.0)
26
- Requires-Dist: playwright (>=1.42.0,<2.0.0)
26
+ Requires-Dist: playwright (>=1.43.0,<2.0.0)
27
27
  Requires-Dist: playwright-stealth (>=1.0.6,<2.0.0)
28
28
  Requires-Dist: puremagic (>=1.21,<2.0)
29
29
  Requires-Dist: pydub (>=0.25.1,<0.26.0) ; extra == "recaptcha"
@@ -718,7 +718,7 @@ class Capture():
718
718
  if allow_tracking:
719
719
  await self._wait_for_random_timeout(page, 2)
720
720
  # This event is required trigger the add_locator_handler
721
- if page.locator("body").is_visible():
721
+ if await page.locator("body").is_visible():
722
722
  await page.locator("body").click(button="right", timeout=2000)
723
723
 
724
724
  # move mouse
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "PlaywrightCapture"
3
- version = "1.24.0"
3
+ version = "1.24.2"
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"
@@ -19,13 +19,13 @@ classifiers=[
19
19
 
20
20
  [tool.poetry.dependencies]
21
21
  python = "^3.8"
22
- playwright = "^1.42.0"
22
+ playwright = "^1.43.0"
23
23
  dateparser = "^1.2.0"
24
24
  beautifulsoup4 = {version= "^4.12.3", extras = ["lxml", "charset_normalizer"]}
25
25
  w3lib = "^2.1.2"
26
26
  requests = {extras = ["socks"], version = "^2.31.0"}
27
27
  pydub = {version = "^0.25.1", optional = true}
28
- SpeechRecognition = {version = "^3.10.2", optional = true}
28
+ SpeechRecognition = {version = "^3.10.3", optional = true}
29
29
  pytz = {"version" = "^2024.1", python = "<3.9"}
30
30
  tzdata = "^2024.1"
31
31
  playwright-stealth = "^1.0.6"
@@ -42,8 +42,8 @@ optional = true
42
42
  types-beautifulsoup4 = "^4.12.0.20240229"
43
43
  pytest = "^8.1.1"
44
44
  mypy = "^1.9.0"
45
- types-dateparser = "^1.1.4.20240106"
46
- types-requests = "^2.31.0.20240311"
45
+ types-dateparser = "^1.1.4.20240331"
46
+ types-requests = "^2.31.0.20240406"
47
47
  types-pytz = "^2024.1.0.20240203"
48
48
 
49
49