PriceGhost/backend
clucraft bf111e13d8 Fix Amazon scraper picking up coupon prices instead of product price
- Add detection for coupon/savings containers and skip prices within them
- Check parent elements for coupon-related IDs, classes, and text
- Add minimum price threshold of $2 (coupons are typically $1-5)
- Add fallback to parse Amazon's whole/fraction price format directly
- Increase findMostLikelyPrice threshold from $0.99 to $5

This fixes the issue where $1 coupon savings were being scraped
instead of the actual $25.99 product price.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 20:46:17 -05:00
..
src Fix Amazon scraper picking up coupon prices instead of product price 2026-01-20 20:46:17 -05:00
.dockerignore Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
.env.example Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
Dockerfile Fix Dockerfiles: use npm install instead of npm ci 2026-01-20 14:02:06 -05:00
package.json Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
tsconfig.json Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00