feat: Implement improved search service with centralized configuration and site-specific parsers for various retailers.

This commit is contained in:
Michael committed 2025-11-30 18:05:34 +01:00
1 parent a8bffaec08
commit c2f042beee
17 files changed
+829 -476

No files matched your search

+8 -8
View File
@@ -157,19 +157,19 @@ SITE_CONFIGS = {
# === GRANDES SURFACES ===
"e-leclerc.com": {
"name": "E.Leclerc",
"search_url": "https://www.e-leclerc.com/recherche?text={query}",
"product_selector": "a[href*='/cat'], a[href*='/produit'], article a, div[class*='product'] a",
"product_image_selector": "img, picture source",
"wait_selector": None,
"search_url": "https://www.e.leclerc/recherche?q={query}",
"product_selector": "a.product-card-link",
"product_image_selector": "img.product-card-image, img[class*='product-image']",
"wait_selector": ".product-card-link",
"category": "Grande Surface",
"requires_proxy": False,
},
"auchan.fr": {
"name": "Auchan",
"search_url": "https://www.auchan.fr/search?text={query}",
"product_selector": "article.product-item a.product-item__name, a[class*='product-item'][href]",
"product_image_selector": "img.product-thumbnail__img, img[class*='product'][class*='img']",
"wait_selector": "article.product-item, .product-list",
"search_url": "https://www.auchan.fr/recherche?text={query}",
"product_selector": "article[class*='product-item'] a[href*='/p-'], div[class*='product-item'] a[href*='/p-']",
"product_image_selector": "img[class*='product-thumbnail__img'], img[class*='product-item__image']",
"wait_selector": "article[class*='product-item'], div[class*='product-item']",
"category": "Grande Surface",
"requires_proxy": False,
},