Fix: Correct playwright-stealth import error (stealth_async -> stealth)
Browse files- app/core/scrapers.py +2 -2
app/core/scrapers.py
CHANGED
|
@@ -136,7 +136,7 @@ class DiscoverySurfer:
|
|
| 136 |
logger.info(f"Surfer exploring {start_url} (depth={depth})")
|
| 137 |
|
| 138 |
from playwright.async_api import async_playwright
|
| 139 |
-
from playwright_stealth import
|
| 140 |
import random
|
| 141 |
import asyncio
|
| 142 |
|
|
@@ -151,7 +151,7 @@ class DiscoverySurfer:
|
|
| 151 |
)
|
| 152 |
|
| 153 |
page = await context.new_page()
|
| 154 |
-
await
|
| 155 |
logger.info("Stealth Sub-Agent active. Masking automation signatures.")
|
| 156 |
|
| 157 |
# Human-like navigation: Random delay before goto
|
|
|
|
| 136 |
logger.info(f"Surfer exploring {start_url} (depth={depth})")
|
| 137 |
|
| 138 |
from playwright.async_api import async_playwright
|
| 139 |
+
from playwright_stealth import stealth
|
| 140 |
import random
|
| 141 |
import asyncio
|
| 142 |
|
|
|
|
| 151 |
)
|
| 152 |
|
| 153 |
page = await context.new_page()
|
| 154 |
+
await stealth(page)
|
| 155 |
logger.info("Stealth Sub-Agent active. Masking automation signatures.")
|
| 156 |
|
| 157 |
# Human-like navigation: Random delay before goto
|