This commit is contained in:
Karim shoair
2025-09-15 14:06:24 +03:00
committed by GitHub
4 changed files with 2 additions and 18 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
__author__ = "Karim Shoair (karim.shoair@pm.me)"
__version__ = "0.3.2"
__version__ = "0.3.3"
__copyright__ = "Copyright (c) 2024 Karim Shoair"
-8
View File
@@ -173,10 +173,6 @@ class StealthySession(StealthySessionMixin, SyncSession):
**self.launch_options
)
# Get the default page and close it
default_page = self.context.pages[0]
default_page.close()
if self.init_script: # pragma: no cover
self.context.add_init_script(path=self.init_script)
@@ -482,10 +478,6 @@ class AsyncStealthySession(StealthySessionMixin, AsyncSession):
**self.launch_options
)
# Get the default page and close it
default_page = self.context.pages[0]
await default_page.close()
if self.init_script: # pragma: no cover
await self.context.add_init_script(path=self.init_script)
@@ -168,10 +168,6 @@ class DynamicSession(DynamicSessionMixin, SyncSession):
else:
self.context = self.playwright.chromium.launch_persistent_context(user_data_dir="", **self.launch_options)
# Get the default page and close it
default_page = self.context.pages[0]
default_page.close()
if self.init_script: # pragma: no cover
self.context.add_init_script(path=self.init_script)
@@ -421,10 +417,6 @@ class AsyncDynamicSession(DynamicSessionMixin, AsyncSession):
user_data_dir="", **self.launch_options
)
# Get the default page and close it
default_page = self.context.pages[0]
await default_page.close()
if self.init_script: # pragma: no cover
await self.context.add_init_script(path=self.init_script)
+1 -1
View File
@@ -1,6 +1,6 @@
[metadata]
name = scrapling
version = 0.3.2
version = 0.3.3
author = Karim Shoair
author_email = karim.shoair@pm.me
description = Scrapling is an undetectable, powerful, flexible, high-performance Python library that makes Web Scraping easy and effortless as it should be!