Lerne die vollstaendige Geizhals-Taxonomie aus der categorylist-API statt nur der ersten HTML-Sektion.
Test Suite / smoke-dev (push) Waiting to run
Test Suite / frontend-checks (push) Waiting to run
Deploy Development / deploy (push) Successful in 2m3s
Test Suite / pytest-backend (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-04 15:16:44 +02:00
1 parent 68a8e3d945
commit 33336bcb6e
5 files changed
+202 -1

No files matched your search

+4
View File
@@ -11,6 +11,7 @@ from app.settings import get_settings
from app.sources.geizhals.category_url import parse_category_key, with_extended_filters
from app.sources.geizhals.live_page import load_category_page, load_result_page
from app.sources.geizhals.result_parser import parse_result_html, with_page
from app.sources.geizhals.taxonomy_api import fetch_taxonomy_api
from app.sources.geizhals.taxonomy_parser import parse_taxonomy_html
FIXTURE_DIR = Path(__file__).resolve().parents[3] / "fixtures" / "geizhals"
@@ -29,6 +30,9 @@ class GeizhalsAdapter:
return self._load(f"{category_ref}-taxonomy.json")
url = with_extended_filters(source_url or f"https://geizhals.de/?cat={category_ref}")
category_ref = parse_category_key(url)
api_payload = fetch_taxonomy_api(source_url or url, category_ref=category_ref)
if api_payload and api_payload.get("filters"):
return api_payload
html, mode, status = load_category_page(
url,
category_ref=category_ref,