Images are not parsed ! :(

I just want to get a link to the images, but only the link in the last product is parsed. Also, the price is not parsed, it returns null (only from the last product)

{"_id":"volgaimage","startUrl":["https://vd-dizel.ru/"],"selectors":[{"id":"123","type":"SelectorLink","parentSelectors":["_root"],"selector":"li.ty-level-0:nth-of-type(3) a","multiple":false,"delay":0},{"id":"456","type":"SelectorLink","parentSelectors":["123"],"selector":"a.product-title","multiple":true,"delay":0},{"id":"price","type":"SelectorText","parentSelectors":["456"],"selector":"span#sec_discounted_price_1091","multiple":false,"regex":"","delay":0},{"id":"image","type":"SelectorImage","parentSelectors":["456"],"selector":"img#det_img_109160635be86d4c1_2445","multiple":false,"delay":0}]}

Hello @viktor

This should work:

{"_id":"volgaimage","startUrl":["https://vd-dizel.ru/index.php?dispatch=products.on_sale"],"selectors":[{"id":"wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.grid-list > div > div > div","multiple":true,"delay":0},{"id":"product-price","type":"SelectorText","parentSelectors":["wrapper"],"selector":"span.ty-price","multiple":false,"regex":"","delay":0},{"id":"product-title","type":"SelectorText","parentSelectors":["wrapper"],"selector":"a.product-title","multiple":false,"regex":"","delay":0},{"id":"product-image","type":"SelectorImage","parentSelectors":["wrapper"],"selector":"img","multiple":false,"delay":0}]}

Thanks! Everything worked out! I understand that you added the code from yourself, because in the editor I could not find where you clicked to make it appear. I'm sorry, but can I ask another question on this topic? I tried your code on another page and it still worked, but most of the images have no address. Instead of the address: data:image/gif. What can this be related to?

{"_id":"dizelvolga","startUrl":["https://vd-dizel.ru/blok-cilindrov-rama.html"],"selectors":[{"id":"wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.grid-list > div > div > div","multiple":true,"delay":0},{"id":"product-price","type":"SelectorText","parentSelectors":["wrapper"],"selector":"span.ty-price","multiple":false,"regex":"","delay":0},{"id":"product-title","type":"SelectorText","parentSelectors":["wrapper"],"selector":"a.product-title","multiple":false,"regex":"","delay":0},{"id":"product-image","type":"SelectorImage","parentSelectors":["wrapper"],"selector":"img","multiple":false,"delay":0}]}

Hello @viktor

These products simply hadn't any image...

@viktor It's problem with the site... Everything works if you disable JavaScript with this plugin - Toggle JavaScript - Chrome Web Store

And use element attribute...

{"_id":"dizelvolga","startUrl":["https://vd-dizel.ru/blok-cilindrov-rama.html"],"selectors":[{"id":"wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.grid-list > div > div > div","multiple":true,"delay":0},{"id":"product-price","type":"SelectorText","parentSelectors":["wrapper"],"selector":"span.ty-price","multiple":false,"regex":"","delay":0},{"id":"product-title","type":"SelectorText","parentSelectors":["wrapper"],"selector":"a.product-title","multiple":false,"regex":"","delay":0},{"id":"product-image","type":"SelectorElementAttribute","parentSelectors":["wrapper"],"selector":"img:nth(0)","multiple":false,"extractAttribute":"data-src","delay":0}]}