mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-22 22:58:11 +02:00
fix: Improve French e-commerce sites configuration
- Change default currency from USD to EUR for all French sites - Update AI extraction prompt to use EUR by default - Fix E.Leclerc search URL pattern - Improve product selectors for Auchan, Carrefour, Amazon France - Add Amazon France language parameter for better results - Enhance cookie acceptance with site-specific selectors: - Amazon (#sp-cc-accept) - E.Leclerc (#onetrust-accept-btn-handler) - Auchan (#popin_tc_privacy_button_2, #didomi-notice-agree-button) - Carrefour (#onetrust-accept-btn-handler) - Cdiscount (#footer_tc_privacy_button_2) - And more CMP platforms (Didomi, OneTrust, Tarteaucitron, etc.) - Improve cookie handling with iframe support and retry logic
This commit is contained in:
2 files changed
+120
-49
No files matched your search
+2
-2
@@ -38,7 +38,7 @@ class AIExtractionResponse(BaseModel):
|
||||
description="Extracted price as a number, or null if no price found",
|
||||
)
|
||||
currency: str = Field(
|
||||
"USD",
|
||||
"EUR",
|
||||
description="Currency code (ISO 4217)",
|
||||
)
|
||||
in_stock: bool | None = Field(
|
||||
@@ -137,7 +137,7 @@ EXTRACTION_PROMPT_TEMPLATE = """Extract product price and stock status from the
|
||||
Respond ONLY with valid JSON:
|
||||
{{
|
||||
"price": <number or null>,
|
||||
"currency": "USD",
|
||||
"currency": "EUR",
|
||||
"in_stock": <true, false, or null>,
|
||||
"price_confidence": <0.0 to 1.0>,
|
||||
"in_stock_confidence": <0.0 to 1.0>,
|
||||
|
||||
Reference in new issue
Block a user