diff --git a/scrapling/__init__.py b/scrapling/__init__.py index d2b54ce..d7de2f8 100644 --- a/scrapling/__init__.py +++ b/scrapling/__init__.py @@ -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" diff --git a/scrapling/engines/_browsers/_camoufox.py b/scrapling/engines/_browsers/_camoufox.py index 6e0bc1e..ad515ca 100644 --- a/scrapling/engines/_browsers/_camoufox.py +++ b/scrapling/engines/_browsers/_camoufox.py @@ -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) diff --git a/scrapling/engines/_browsers/_controllers.py b/scrapling/engines/_browsers/_controllers.py index 07efee2..70b3771 100644 --- a/scrapling/engines/_browsers/_controllers.py +++ b/scrapling/engines/_browsers/_controllers.py @@ -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) diff --git a/setup.cfg b/setup.cfg index 1cac942..d6ecc6c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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!