feat: Implement improved search service with supporting models, schemas, and API routers, and refactor site verification script.

This commit is contained in:
Michael committed 2025-11-30 23:33:05 +01:00
1 parent 4720ed6b93
commit 9855040f3e
21 files changed
+57932 -419

No files matched your search

+9
View File
@@ -446,6 +446,15 @@ class BrowserlessService:
break
except Exception:
continue
# Generic wait selector
if wait_selector:
try:
logger.info(f"⏳ Waiting for selector: {wait_selector}")
await page.wait_for_selector(wait_selector, timeout=10000, state="attached")
logger.info(f"✅ Wait selector found: {wait_selector}")
except Exception as e:
logger.warning(f"⚠️ Wait selector {wait_selector} timed out or failed: {e}")
# Extract content
if extract_text: