Hello there,
I want to scrape galleries from an ad archive, but I'm having trouble finding the right selector. "Image" doesn't work at all (well, only on a google ad), because all images in the gallery are backgrounds for on-click items, like this:
div onclick="location.href='/stajnie/galeria/3497/#1'" class="swiper-lazy swiper-lazy-loaded" style="background-image: url("/img/s/duze/5407.jpg");"
With "/img/s/duze/5407.jpg" being one of the images in a gallery.
I am aware that the Image selector scrapes exactly that kind of an url, but how do I extract it now? Thanks in advance for any help, much appreciated.
Url: Ogłoszenia re-volta.pl or for particular page Ogłoszenia re-volta.pl
Sitemap:
{"_id":"stajnie","startUrl":["[https://ogloszenia.re-volta.pl/stajnie/"],"selectors":{"id":"pagination","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":"a:nth-of-type(7)","multiple":true,"delay":0},{"id":"product-link","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":"div.informacje:nth-of-type(2) h3 a","multiple":true,"delay":0},{"id":"Stajnia","type":"SelectorText","parentSelectors":["product-link"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Infrastruktura jeździecka","type":"SelectorText","parentSelectors":["product-link"],"selector":"div.kolumna:nth-of-type(1) li.ok","multiple":true,"regex":"","delay":0},{"id":"Spędzanie czasu","type":"SelectorText","parentSelectors":["product-link"],"selector":"div.kolumna:nth-of-type(2) li.ok:nth-of-type(n+2)","multiple":true,"regex":"","delay":0},{"id":"Wyposażenie stajni","type":"SelectorText","parentSelectors":["product-link"],"selector":"div.kolumna:nth-of-type(3) li.ok","multiple":true,"regex":"","delay":0},{"id":"Adres","type":"SelectorText","parentSelectors":["product-link"],"selector":".pole .stajnia_detale div:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"obrazek","type":"SelectorImage","parentSelectors":["product-link"],"selector":".swiper-lazy swiper-lazy-loaded","multiple":false,"delay":0},{"id":"Kontakt","type":"SelectorText","parentSelectors":["product-link"],"selector":".pole .stajnia_detale div:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"Opis","type":"SelectorText","parentSelectors":["product-link"],"selector":"div[itemprop='description']","multiple":false,"regex":"","delay":0}]}
