PlaywrightCapture 1.31.1__py3-none-any.whl → 1.31.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.
@@ -823,7 +823,7 @@ class Capture():
823
823
  # Same technique as: https://github.com/NikolaiT/uncaptcha3
824
824
  if CAN_SOLVE_CAPTCHA:
825
825
  try:
826
- if (await page.locator("//iframe[@title='reCAPTCHA']").first.is_visible(timeout=3000)
826
+ if (await page.locator("//iframe[@title='reCAPTCHA']").first.is_visible()
827
827
  and await page.locator("//iframe[@title='reCAPTCHA']").first.is_enabled(timeout=2000)):
828
828
  self.logger.info('Found a captcha')
829
829
  await self._recaptcha_solver(page)
@@ -1387,7 +1387,7 @@ class Capture():
1387
1387
  if not recaptcha_init_frame:
1388
1388
  return False
1389
1389
  try:
1390
- if await recaptcha_init_frame.get_by_role("checkbox", name="I'm not a robot").is_visible(timeout=5000):
1390
+ if await recaptcha_init_frame.get_by_role("checkbox", name="I'm not a robot").is_visible():
1391
1391
  await recaptcha_init_frame.get_by_role("checkbox", name="I'm not a robot").click()
1392
1392
  else:
1393
1393
  self.logger.info('Checkbox not visible.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: PlaywrightCapture
3
- Version: 1.31.1
3
+ Version: 1.31.3
4
4
  Summary: A simple library to capture websites using playwright
5
5
  License: BSD-3-Clause
6
6
  Author: Raphaël Vinot
@@ -23,9 +23,9 @@ Requires-Dist: aiohttp-socks (>=0.10.1)
23
23
  Requires-Dist: aiohttp[speedups] (>=3.12.13)
24
24
  Requires-Dist: async-timeout (>=5.0.1) ; python_version < "3.11"
25
25
  Requires-Dist: beautifulsoup4[charset-normalizer,lxml] (>=4.13.4)
26
- Requires-Dist: dateparser (>=1.2.1)
26
+ Requires-Dist: dateparser (>=1.2.2)
27
27
  Requires-Dist: dnspython (>=2.7.0,<3.0.0)
28
- Requires-Dist: playwright (>=1.52.0)
28
+ Requires-Dist: playwright (>=1.53.0)
29
29
  Requires-Dist: playwright-stealth (>=2)
30
30
  Requires-Dist: puremagic (>=1.29)
31
31
  Requires-Dist: pydub (>=0.25.1) ; (python_version < "3.10") and (extra == "recaptcha")
@@ -1,10 +1,10 @@
1
1
  playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
2
- playwrightcapture/capture.py,sha256=lXcBWWEWRmQem6Rs_yj51PB74JFlRL4k1kggFCMxFTA,86586
2
+ playwrightcapture/capture.py,sha256=p5N16ymdpSXDu738YGtn_KjYChzcqtkqWMyTNQfbhKU,86562
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
6
  playwrightcapture/socks5dnslookup.py,sha256=ZpOf8tgsRQZi-WDcn9JbbG1bKz9DSfK_jz1l53UI1Ho,4058
7
- playwrightcapture-1.31.1.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
8
- playwrightcapture-1.31.1.dist-info/METADATA,sha256=9dN2yvPavtQN-iheDOgUT15lxoFvM_MzPPnM_skV3sA,3285
9
- playwrightcapture-1.31.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
10
- playwrightcapture-1.31.1.dist-info/RECORD,,
7
+ playwrightcapture-1.31.3.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
8
+ playwrightcapture-1.31.3.dist-info/METADATA,sha256=p6R6YfXdVpPfpNMBIljl4v_Lu30N6ZdZ-RC3UGa83OY,3285
9
+ playwrightcapture-1.31.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
10
+ playwrightcapture-1.31.3.dist-info/RECORD,,