scrapling 0.3.2__py3-none-any.whl → 0.3.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.
scrapling/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  __author__ = "Karim Shoair (karim.shoair@pm.me)"
2
- __version__ = "0.3.2"
2
+ __version__ = "0.3.3"
3
3
  __copyright__ = "Copyright (c) 2024 Karim Shoair"
4
4
 
5
5
 
@@ -173,10 +173,6 @@ class StealthySession(StealthySessionMixin, SyncSession):
173
173
  **self.launch_options
174
174
  )
175
175
 
176
- # Get the default page and close it
177
- default_page = self.context.pages[0]
178
- default_page.close()
179
-
180
176
  if self.init_script: # pragma: no cover
181
177
  self.context.add_init_script(path=self.init_script)
182
178
 
@@ -482,10 +478,6 @@ class AsyncStealthySession(StealthySessionMixin, AsyncSession):
482
478
  **self.launch_options
483
479
  )
484
480
 
485
- # Get the default page and close it
486
- default_page = self.context.pages[0]
487
- await default_page.close()
488
-
489
481
  if self.init_script: # pragma: no cover
490
482
  await self.context.add_init_script(path=self.init_script)
491
483
 
@@ -168,10 +168,6 @@ class DynamicSession(DynamicSessionMixin, SyncSession):
168
168
  else:
169
169
  self.context = self.playwright.chromium.launch_persistent_context(user_data_dir="", **self.launch_options)
170
170
 
171
- # Get the default page and close it
172
- default_page = self.context.pages[0]
173
- default_page.close()
174
-
175
171
  if self.init_script: # pragma: no cover
176
172
  self.context.add_init_script(path=self.init_script)
177
173
 
@@ -421,10 +417,6 @@ class AsyncDynamicSession(DynamicSessionMixin, AsyncSession):
421
417
  user_data_dir="", **self.launch_options
422
418
  )
423
419
 
424
- # Get the default page and close it
425
- default_page = self.context.pages[0]
426
- await default_page.close()
427
-
428
420
  if self.init_script: # pragma: no cover
429
421
  await self.context.add_init_script(path=self.init_script)
430
422
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrapling
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Scrapling is an undetectable, powerful, flexible, high-performance Python library that makes Web Scraping easy and effortless as it should be!
5
5
  Home-page: https://github.com/D4Vinci/Scrapling
6
6
  Author: Karim Shoair
@@ -1,4 +1,4 @@
1
- scrapling/__init__.py,sha256=5TF141QF33L868x11G7suZB4cwAH-H73jKrO7eFxpBE,1236
1
+ scrapling/__init__.py,sha256=c1t8r6IGEXC-PhNeFxFtoqNsiSv7B_9f_XBn52EWESg,1236
2
2
  scrapling/cli.py,sha256=ooObP0VoYGxnskEJB6xFp23NREI_XDPJpsMSr9Sv8nk,26355
3
3
  scrapling/fetchers.py,sha256=aYQUxp-0i-OBucdpdG6zjWCafTCgpXJdnJ0GIrm5GfA,26523
4
4
  scrapling/parser.py,sha256=aJRqfuOxBHrM_Co9XHeuL6qYHgQTyi7zD1DoCA3mROY,57321
@@ -20,9 +20,9 @@ scrapling/engines/constants.py,sha256=DP7yVRK1w1W4B1eXGeeKKQNDSo163FFXdPaxTy4adq
20
20
  scrapling/engines/static.py,sha256=779pVJvCCjFSCKGN7a_9rAH55oO2SyO88cnVrE2DQy8,33204
21
21
  scrapling/engines/_browsers/__init__.py,sha256=lu5RgcV4zYacRaKm28ph5TzjqAovTaQNNfXSgQGwDOU,123
22
22
  scrapling/engines/_browsers/_base.py,sha256=vX75atq2QpsiCCpT4P2W4HQqs3P2RZWYHvDevh271kQ,12238
23
- scrapling/engines/_browsers/_camoufox.py,sha256=oHXEaboA8G_Z6MoipeKuYNOFW2UgH93IAH0VUYu649Q,35134
23
+ scrapling/engines/_browsers/_camoufox.py,sha256=RHQMlSrn4PKg0p53b5r7aGzWxacTjUZWlPOdRPDOvls,34890
24
24
  scrapling/engines/_browsers/_config_tools.py,sha256=mEPA5SGrWq0dl15cDOT6sOsm5NHMD0vI0fuPttGpw-U,4610
25
- scrapling/engines/_browsers/_controllers.py,sha256=6tlAsPtATLlaPq43oWILiHlwJ0yPEcN_8FsUugZLmwQ,28490
25
+ scrapling/engines/_browsers/_controllers.py,sha256=GlYGt_LBTDjrWpD1zgKyyy9mynlEPR9MfnXJFUSDw2s,28246
26
26
  scrapling/engines/_browsers/_page.py,sha256=ixwI5d-AIzfUGekRSCbPLJAckf673B7QCyaWO-xJa84,3688
27
27
  scrapling/engines/_browsers/_validators.py,sha256=knkGvgpGeqtOWx4Us3pln1o4mJXfG4M-SWII080I9AE,6117
28
28
  scrapling/engines/toolbelt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
@@ -36,9 +36,9 @@ scrapling/engines/toolbelt/bypasses/playwright_fingerprint.js,sha256=clzuf7KYcvD
36
36
  scrapling/engines/toolbelt/bypasses/screen_props.js,sha256=fZEuHMQ1-fYuxxUMoQXUvVWYUkPUbblkfMfpiLvBY7w,599
37
37
  scrapling/engines/toolbelt/bypasses/webdriver_fully.js,sha256=hdJw4clRAJQqIdq5gIFC_eC-x7C1i2ab01KV5ylmOBs,728
38
38
  scrapling/engines/toolbelt/bypasses/window_chrome.js,sha256=D7hqzNGGDorh8JVlvm2YIv7Bk2CoVkG55MDIdyqhT1w,6808
39
- scrapling-0.3.2.dist-info/licenses/LICENSE,sha256=XHgu8DRuT7_g3Hb9Q18YGg8eShp6axPBacbnQxT_WWQ,1499
40
- scrapling-0.3.2.dist-info/METADATA,sha256=NDQwyt5_1fQfDjizTLO5jUc2-Ww5KvrcdHCRoOuNERw,21948
41
- scrapling-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
- scrapling-0.3.2.dist-info/entry_points.txt,sha256=DHyt2Blxy0P5OE2HRcP95Wz9_xo2ERCDcNqrJjYS3o8,49
43
- scrapling-0.3.2.dist-info/top_level.txt,sha256=Ud-yF-PC2U5HQ3nc5QwT7HSPdIpF1RuwQ_mYgBzHHIM,10
44
- scrapling-0.3.2.dist-info/RECORD,,
39
+ scrapling-0.3.3.dist-info/licenses/LICENSE,sha256=XHgu8DRuT7_g3Hb9Q18YGg8eShp6axPBacbnQxT_WWQ,1499
40
+ scrapling-0.3.3.dist-info/METADATA,sha256=QXhVgzdtzq9U5kEpv8kWSkGD64EQBoZfmR5QRkfTV1I,21948
41
+ scrapling-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ scrapling-0.3.3.dist-info/entry_points.txt,sha256=DHyt2Blxy0P5OE2HRcP95Wz9_xo2ERCDcNqrJjYS3o8,49
43
+ scrapling-0.3.3.dist-info/top_level.txt,sha256=Ud-yF-PC2U5HQ3nc5QwT7HSPdIpF1RuwQ_mYgBzHHIM,10
44
+ scrapling-0.3.3.dist-info/RECORD,,