mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-22 14:48:13 +02:00
feat: Implement scheduler service for automated item price and stock tracking with hybrid extraction and bot detection.
This commit is contained in:
1 parent
2fae5350b3
commit
17b3009b1d
2 files changed
+7
-5
No files matched your search
@@ -177,11 +177,12 @@ async def process_item_check(item_id: int):
|
||||
logger.debug(f"JSON-LD extraction failed: {e}")
|
||||
|
||||
# 2. Try AIPriceExtractor (Text AI - Gemma 3) - Very reliable for search
|
||||
from app.services.ai_price_extractor import AIPriceExtractor
|
||||
if price is None:
|
||||
price = await AIPriceExtractor.extract_price(html_content, item_data["name"])
|
||||
if price:
|
||||
logger.info(f"AIPriceExtractor (Text) found price: {price}€")
|
||||
# DISABLED FOR VISION PRIORITY (User Request: Option 2)
|
||||
# from app.services.ai_price_extractor import AIPriceExtractor
|
||||
# if price is None:
|
||||
# price = await AIPriceExtractor.extract_price(html_content, item_data["name"])
|
||||
# if price:
|
||||
# logger.info(f"AIPriceExtractor (Text) found price: {price}€")
|
||||
|
||||
# 3. Fallback/Verification with AIService (Vision AI - Gemini)
|
||||
extraction = None
|
||||
|
||||
Reference in new issue
Block a user