dgtlmoon / changedetection.io

The best and simplest free open source web page change detection, website watcher, restock monitor and notification service. Restock Monitor, change detection. Designed for simplicity - Simply monitor which websites had a text change for free. Free Open source web page change detection, Website defacement monitoring, Price change notification
https://changedetection.io
Apache License 2.0
17.3k stars 965 forks source link

More than one price found in a single page product #2637

Closed dgtlmoon closed 4 weeks ago

dgtlmoon commented 4 weeks ago

Discussed in https://github.com/dgtlmoon/changedetection.io/discussions/2636

Originally posted by **fetuffani** September 16, 2024 **Describe the bug** I've reached to a problem where if the price is reported many times in the single product page with different formats the plugin thinks it is two different prices changedetectionio.processors.restock_diff.processor:get_itemprop_availability:71 - More than one price found {'**2879.2**', '**2879.20**'}, throwing exception, cant use this plugin. My bet is that the price is both shown in the tag and java script JSON as follows: `` `` But I haven't done any debbugging. **Version** v0.46.04 **To Reproduce** Steps to reproduce the behavior: 1. Register this URL as price change detection: https://changedetection.io/share/MwXkGX_XPk0a 2. The price detector will show an error https://produto.mercadolivre.com.br/MLB-4270080936-mini-pc-lenovo-thinkcentre-m920-i5-32gb-nvme-1tb-win11-_JM **Expected behavior** Get the single product price correctly independent of how it is presented on the webpage **Additional context** Change Detection is running from a docker image (lscr.io/linuxserver/changedetection.io:latest)
dgtlmoon commented 4 weeks ago

hmm they have some weird broken metadata

2922.80
2922.8

something like this