a-k-dey commited on
Commit
a40a9f5
·
1 Parent(s): 5fedeff

Fix: Correct playwright-stealth import error (stealth_async -> stealth)

Browse files
Files changed (1) hide show
  1. 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 stealth_async
140
  import random
141
  import asyncio
142
 
@@ -151,7 +151,7 @@ class DiscoverySurfer:
151
  )
152
 
153
  page = await context.new_page()
154
- await stealth_async(page)
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