dgtlmoon/changedetection.io

[bug?] xpath not applying to HP website properly

Closed this issue · 2 comments

https://www.hp.com/gb-en/shop/product.aspx?id=5UU40AA&opt=&sel=DEF

This filter should just give the price..

//*[@id="overview"]/div/div[2]/div/div[2]/div/div/div[1]/div

But instead it's returning the whole HTML document? @Constantin1489 ideas? :)

Mine works. looks like related. #2401 (reply in thread) (My xpath3.1 filter uses this patch. I think this because the official CD doesn't use my patch. Also when I don't use the xpath at all, it really print everything in the page. So it's encoding problem.)

(red text: xpath3.1 with the patch
green: xpath1 without the patch)

image

amazing thank you :) please see that last comment on the PR