Trying to get price, different html each time

Trying to get the product, price and link for this page. Product and link info are OK, but price has a different field name each time. Not sure how to get this. Had a look in the FAQs but nothing obvious came up. Any idea on how to to this?



{"_id":"fanthorpes","startUrl":["",""],"selectors":[{"id":"product","type":"SelectorElement","parentSelectors":["_root"],"selector":".grid-list div.bordered","multiple":true,"delay":0},{"id":"producttitle","type":"SelectorText","parentSelectors":["product"],"selector":"a.product-title","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product"],"selector":"span#sec_discounted_price_2696","multiple":false,"regex":"","delay":0},{"id":"plink","type":"SelectorElementAttribute","parentSelectors":["product"],"selector":"a.product-title","multiple":false,"extractAttribute":"href","delay":0}]}

I checked out your sitemap, it does not extract any data from the given start URL.

Just double checked it and it does, sitemap is working more or less ok apart from reported issue. Its something your end Im afraid....

This is a fairly common issue on modern websites, and you can fix it with something like:

Here we're just using the ^ "begins with" selector, so it'll ignore the random end digits. You could also select another element within the span which does not change, e.g. span[class='ty-price-num']


Genius, thats sorted it, cheers for the rapid response! :grinning: