mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-11 17:29:14 +02:00
feat: add improved search service with persistent browser, modular parsers, and popup handling.
This commit is contained in:
1 parent
9855040f3e
commit
4dd77bd889
2 files changed
+8
-9
No files matched your search
@@ -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]:
|
||||
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user