Scrape image - element attribute

Hello,

how to get img URL using Element attribute ?

URL - https://www.astrolighting.com/products/5739-minima-round-adjustable-fire-rated

code:

[div class="slider__inner"]

[figure id="gallery-2" class="slider__slide zoom" data-fullsize="https://assets.astrolighting.com/images/zoom/29895-5739-minimarndadjfirerated.jpg"]

Selector ".slider__slide zoom" / Attribute name "data-fullsize" - NOT WORKING

Thanks !

Hi, you have selected the correct information. The issue is that the Element has two classes that are separated with a white space. If you are looking to use both of them, then there should be a '.' separating them in the selector. Otherwise, I would advise using only one of them. The extension is selecting the 'slider_slider' class and then looking for a 'zoom' class as it child because of the white space. As there is no such class underneath it, it is causing the scraper to fail.

This is how it should look like to produce the desired result:

{"_id":"image-url","startUrl":["https://www.astrolighting.com/products/5739-minima-round-adjustable-fire-rated"],"selectors":[{"id":"iamge","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":".slider__slide","multiple":false,"extractAttribute":"data-fullsize","delay":0}]}