Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

fix: add missing line

Karim shoair08f3e6efad48
diff --git a/scrapling/engines/_browsers/_stealth.py b/scrapling/engines/_browsers/_stealth.py
index 1cce675..e191059 100644
--- a/scrapling/engines/_browsers/_stealth.py
+++ b/scrapling/engines/_browsers/_stealth.py
@@ -96,6 +96,8 @@ class StealthySession(SyncSession, StealthySessionMixin):
if self._config.cookies: # pragma: no cover
self.context.add_cookies(self._config.cookies)
+
+ self._is_alive = True
else:
raise RuntimeError("Session has been already started")
@@ -308,6 +310,8 @@ class AsyncStealthySession(AsyncSession, StealthySessionMixin):
if self._config.cookies:
await self.context.add_cookies(self._config.cookies) # pyright: ignore
+
+ self._is_alive = True
else:
raise RuntimeError("Session has been already started")