mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-19 13:18:12 +02:00
20 lines
605 B
Python
20 lines
605 B
Python
from bs4 import BeautifulSoup
|
|
from app.services.parsers.base_parser import BaseParser, ProductResult
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
class AuchanParser(BaseParser):
|
|
def __init__(self):
|
|
in_stock=True,
|
|
image_url=img_url,
|
|
snippet=f"Product from Auchan"
|
|
))
|
|
|
|
except Exception as e:
|
|
logger.error(f"Error parsing Auchan product: {e}")
|
|
continue
|
|
|
|
logger.info(f"AuchanParser found {len(results)} results")
|
|
return results
|