From 4dd77bd8893a911930ee47ff8f474433711c6c55 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Sun, 30 Nov 2025 23:35:40 +0100 Subject: [PATCH] feat: add improved search service with persistent browser, modular parsers, and popup handling. --- app/services/improved_search_service.py | 10 +--------- check_syntax.py | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 check_syntax.py diff --git a/app/services/improved_search_service.py b/app/services/improved_search_service.py index 2e81071..a45658a 100644 --- a/app/services/improved_search_service.py +++ b/app/services/improved_search_service.py @@ -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]: diff --git a/check_syntax.py b/check_syntax.py new file mode 100644 index 0000000..4cc2eb0 --- /dev/null +++ b/check_syntax.py @@ -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)