mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 23:28:12 +02:00
Merge pull request #194 from R0m1k3/antigravity
feat: add improved search service with persistent browser, modular pa…
This commit is contained in:
2 files changed
+8
-9
No files matched your search
@@ -175,15 +175,7 @@ class ImprovedSearchService:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
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
|
@staticmethod
|
||||||
def _parse_results(html: str, site_key: str, base_url: str, query: str) -> list[SearchResult]:
|
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