PricePinion / PricePinion-Backend

This repo is the backend for PricePinion.
https://pricepinion-backend.azurewebsites.net/
0 stars 2 forks source link

Added price per pound detection and dollar sign formatting for Kroger stores. #29

Closed maslindc2 closed 4 months ago

maslindc2 commented 4 months ago

Price Per Pound

For the Kroger stores price per pound was located in a separate span that is also reused shared with the "SNAP EBT" icon. Added detection for this, the scraper will first try to locate the price per pound span. If the value the extractor grabbed does not match the $X.XX/lb pattern then we target the main price tag element.

Dollar sign formatting

Price per pound includes a dollar sign in the string, the main price tag does not. As Whole Foods includes this in all their prices, we add a dollar sign to improve formatting on the frontend.