feat: add improved search service with persistent browser, modular parsers, and popup handling.

This commit is contained in:
Michael committed 2025-11-30 23:35:40 +01:00
1 parent 9855040f3e
commit 4dd77bd889
2 files changed
+8 -9

No files matched your search

+1 -9
View File
@@ -175,15 +175,7 @@ class ImprovedSearchService:
except Exception:
pass
url=product.url,
title=product.title,
snippet=product.snippet,
source=product.source,
price=product.price,
currency=product.currency,
in_stock=product.in_stock,
image_url=product.image_url,
)
@staticmethod
def _parse_results(html: str, site_key: str, base_url: str, query: str) -> list[SearchResult]:
+7
View File
@@ -0,0 +1,7 @@
import sys
try:
from app.services import improved_search_service
print("Import successful")
except Exception as e:
print(f"Import failed: {e}")
sys.exit(1)