Images are not being scrapped

Describe the problem.
I am trying to scrape data from an e-commerce website. Everything looks good but images are not being scraped. IDK why. I tried different ways but it does not work for me
Url: http://example.com
https://www.n11.com
Sitemap:
{id:"sitemap code"}

{"_id":"n11","startUrl":["Telefon & Aksesuarları Modelleri ve Fiyatları - n11.com a.plink","multiple":true,"delay":0},{"id":"Title","type":"SelectorText","parentSelectors":["Links"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Old Price (Cut)","type":"SelectorText","parentSelectors":["Links"],"selector":".priceDetail del","multiple":false,"regex":"","delay":0},{"id":"Current Price","type":"SelectorText","parentSelectors":["Links"],"selector":".newPrice ins","multiple":false,"regex":"","delay":0},{"id":"Discount Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.discountL","multiple":false,"regex":"","delay":0},{"id":"Shipping","type":"SelectorText","parentSelectors":["Links"],"selector":"div.cargo","multiple":false,"regex":"","delay":0},{"id":"Other Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-p-sku-slct","multiple":false,"regex":"","delay":0},{"id":"Image 1","type":"SelectorImage","parentSelectors":["Links"],"selector":".active img","multiple":false,"delay":0},{"id":"Image 2","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/03/33/39/37/85350941.jpg'] img","multiple":false,"delay":0},{"id":"Image 3","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/10/31/16/40/86851016.jpg'] img","multiple":false,"delay":0},{"id":"Image 4","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/08/82/96/87/20950729.jpg'] img","multiple":false,"delay":0},{"id":"Image 5","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/11/12/74/44/18035710.jpg'] img","multiple":false,"delay":0},{"id":"Product Long Description","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-info","multiple":false,"regex":"","delay":0},{"id":"Other Specs","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-prop","multiple":false,"regex":"","delay":0},{"id":"Pagination","type":"SelectorLink","parentSelectors":["_root","Pagination"],"selector":".pagination a:nth-of-type(n+2)","multiple":false,"delay":0},{"id":"Images Combined","type":"SelectorGroup","parentSelectors":["Links"],"selector":".unf-p-thumbs img","delay":0,"extractAttribute":"src"}]}

Hello @raja
Can't open your sitemap.


When you paste your sitemap here, mark it and press CTRL + Shift + C
Or use preformatted text tool, otherwise there might be some paste error... :frowning:

My appologise bro. Please have a look at this code. Now I am able to scrape Images by group but Its not useful for me. I need all of them separately. Thanks for your response dear
Sitemap:

{"_id":"trendyol2","startUrl":["https://www.trendyol.com/sr?cid=558846%2C558948&pi=[1-100]"],"selectors":[{"id":"Element-Card","type":"SelectorElement","parentSelectors":["Links"],"selector":"body:has(div[data-fragment-name=\"ProductDetail\"])","multiple":true,"delay":0},{"id":"Links","type":"SelectorLink","parentSelectors":["scroll"],"selector":"a","multiple":true,"delay":0},{"id":"Title","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Additional Info","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-sz-w","multiple":false,"regex":"","delay":0},{"id":"Product Information","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-dt","multiple":false,"regex":"","delay":0},{"id":"Seller","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"h1 a","multiple":false,"regex":"","delay":0},{"id":"Number of Reviews","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.tooltip-wrp + a","multiple":false,"regex":"","delay":0},{"id":"Stars","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.score","multiple":false,"regex":"","delay":0},{"id":"Images","type":"SelectorGroup","parentSelectors":["Element-Card"],"selector":"div.slick-track .pd-img img","delay":0,"extractAttribute":"src"},{"id":"Seller Rating","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.sl-pn","multiple":false,"regex":"","delay":0},{"id":"scroll","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.p-card-wrppr","multiple":true,"delay":0},{"id":"Description","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-dt","multiple":false,"regex":"","delay":0},{"id":"Shipping","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.dd-txt-vl","multiple":false,"regex":"","delay":0},{"id":"Favourite","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.fv-dt","multiple":false,"regex":"","delay":0},{"id":"Discount","type":"SelectorText","parentSelectors":["Element-Card"],"selector":".pr-bx-pr-dsc div.pr-bx-pr-dsc","multiple":false,"regex":"","delay":0},{"id":"Price 1 (Cut)","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-org","multiple":false,"regex":"","delay":0},{"id":"Price 2","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-slg","multiple":false,"regex":"","delay":0},{"id":"Current Price","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-dsc","multiple":false,"regex":"","delay":0},{"id":"Free Kargo ( If available)","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.stamp","multiple":false,"regex":"","delay":0}]}

Just take them one by one like this:

{"_id":"trendyol2","startUrl":["https://www.trendyol.com/sr?cid=558846%2C558948&pi=[1-100]"],"selectors":[{"id":"Element-Card","type":"SelectorElement","parentSelectors":["Links"],"selector":"body:has(div[data-fragment-name=\"ProductDetail\"])","multiple":true,"delay":0},{"id":"Links","type":"SelectorLink","parentSelectors":["scroll"],"selector":"a","multiple":true,"delay":0},{"id":"Title","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Additional Info","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-sz-w","multiple":false,"regex":"","delay":0},{"id":"Product Information","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-dt","multiple":false,"regex":"","delay":0},{"id":"Seller","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"h1 a","multiple":false,"regex":"","delay":0},{"id":"Number of Reviews","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.tooltip-wrp + a","multiple":false,"regex":"","delay":0},{"id":"Stars","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.score","multiple":false,"regex":"","delay":0},{"id":"Seller Rating","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.sl-pn","multiple":false,"regex":"","delay":0},{"id":"scroll","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.p-card-wrppr","multiple":true,"delay":0},{"id":"Description","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.pr-in-dt","multiple":false,"regex":"","delay":0},{"id":"Shipping","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.dd-txt-vl","multiple":false,"regex":"","delay":0},{"id":"Favourite","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.fv-dt","multiple":false,"regex":"","delay":0},{"id":"Discount","type":"SelectorText","parentSelectors":["Element-Card"],"selector":".pr-bx-pr-dsc div.pr-bx-pr-dsc","multiple":false,"regex":"","delay":0},{"id":"Price 1 (Cut)","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-org","multiple":false,"regex":"","delay":0},{"id":"Price 2","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-slg","multiple":false,"regex":"","delay":0},{"id":"Current Price","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"span.prc-dsc","multiple":false,"regex":"","delay":0},{"id":"Free Kargo ( If available)","type":"SelectorText","parentSelectors":["Element-Card"],"selector":"div.stamp","multiple":false,"regex":"","delay":0},{"id":"img1","type":"SelectorImage","parentSelectors":["Element-Card"],"selector":"div.slick-list [data-index=\"0\"] img","multiple":false,"delay":0},{"id":"img2","type":"SelectorImage","parentSelectors":["Element-Card"],"selector":"div.slick-list [data-index=\"1\"] img","multiple":false,"delay":0},{"id":"img3","type":"SelectorImage","parentSelectors":["Element-Card"],"selector":"div.slick-list [data-index=\"2\"] img","multiple":false,"delay":0},{"id":"img4","type":"SelectorImage","parentSelectors":["Element-Card"],"selector":"div.slick-list [data-index=\"3\"] img","multiple":false,"delay":0},{"id":"img5","type":"SelectorImage","parentSelectors":["Element-Card"],"selector":"div.slick-list [data-index=\"4\"] img","multiple":false,"delay":0}]}

I really appreciate your efforts. Thanks a lot man :slight_smile:

1 Like

Hey there. I have same problem in scrapping images from another site. Please look at this code once please.

{"_id":"n11","startUrl":["https://www.n11.com/telefon-ve-aksesuarlari?pg=2"],"selectors":[{"id":"Links","type":"SelectorLink","parentSelectors":["_root"],"selector":".pro a.plink","multiple":true,"delay":0},{"id":"Title","type":"SelectorText","parentSelectors":["Links"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Old Price (Cut)","type":"SelectorText","parentSelectors":["Links"],"selector":".priceDetail del","multiple":false,"regex":"","delay":0},{"id":"Current Price","type":"SelectorText","parentSelectors":["Links"],"selector":".newPrice ins","multiple":false,"regex":"","delay":0},{"id":"Discount Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.discountL","multiple":false,"regex":"","delay":0},{"id":"Shipping","type":"SelectorText","parentSelectors":["Links"],"selector":"div.cargo","multiple":false,"regex":"","delay":0},{"id":"Other Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-p-sku-slct","multiple":false,"regex":"","delay":0},{"id":"Image 1","type":"SelectorImage","parentSelectors":["Links"],"selector":".active img","multiple":false,"delay":0},{"id":"Image 2","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/03/33/39/37/85350941.jpg'] img","multiple":false,"delay":0},{"id":"Image 3","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/10/31/16/40/86851016.jpg'] img","multiple":false,"delay":0},{"id":"Image 4","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/08/82/96/87/20950729.jpg'] img","multiple":false,"delay":0},{"id":"Image 5","type":"SelectorImage","parentSelectors":["Links"],"selector":"[data-thumb='https://n11scdn1.akamaized.net/a1/450/11/12/74/44/18035710.jpg'] img","multiple":false,"delay":0},{"id":"Product Long Description","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-info","multiple":false,"regex":"","delay":0},{"id":"Other Specs","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-prop","multiple":false,"regex":"","delay":0},{"id":"Pagination","type":"SelectorLink","parentSelectors":["_root","Pagination"],"selector":".pagination a:nth-of-type(n+2)","multiple":false,"delay":0},{"id":"Images Combined","type":"SelectorGroup","parentSelectors":["Links"],"selector":".unf-p-thumbs img","delay":0,"extractAttribute":"src"}]}Preformatted text

@raja Hi. In this case you can easily use element-attribute selector.
Right-click on each of the picture, click inspect.


Then choose

Example in sitemap:
{"_id":"n11","startUrl":["https://www.n11.com/urun/samsung-galaxy-buds-pro-bluetooth-kulaklik-1718845?magaza=turkuazankara"],"selectors":[{"id":"Image 1","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"ul.unf-p-thumbs li:nth(0)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Image 2","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"ul.unf-p-thumbs li:nth(1)","multiple":false,"extractAttribute":"data-full","delay":0}]}

Thank you very much. I tried your sitemap and it worked. But i think you forgot to mention how to select value for selector. Screenshot 2021-04-07 111200
Please have a look at my site and correct it. Waiting for your earlier response. Thanks a lot for your help.

{"_id":"n11","startUrl":["https://www.n11.com/telefon-ve-aksesuarlari?pg=5"],"selectors":[{"id":"Links","type":"SelectorLink","parentSelectors":["_root"],"selector":".pro a.plink","multiple":true,"delay":0},{"id":"Title","type":"SelectorText","parentSelectors":["Links"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Old Price (Cut)","type":"SelectorText","parentSelectors":["Links"],"selector":".priceDetail del","multiple":false,"regex":"","delay":0},{"id":"Current Price","type":"SelectorText","parentSelectors":["Links"],"selector":".newPrice ins","multiple":false,"regex":"","delay":0},{"id":"Discount Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.discountL","multiple":false,"regex":"","delay":0},{"id":"Shipping","type":"SelectorText","parentSelectors":["Links"],"selector":"div.cargo","multiple":false,"regex":"","delay":0},{"id":"Other Details","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-p-sku-slct","multiple":false,"regex":"","delay":0},{"id":"Image 1","type":"SelectorElementAttribute","parentSelectors":["Links"],"selector":"ul.unf-p-thumbs li:nth(0)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Image 2","type":"SelectorElementAttribute","parentSelectors":["Links"],"selector":"ul.unf-p-thumbs li:nth(1)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Image 3","type":"SelectorElementAttribute","parentSelectors":["Links"],"selector":"ul.unf-p-thumbs li:nth(2)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Image 4","type":"SelectorElementAttribute","parentSelectors":["Links"],"selector":"ul.unf-p-thumbs li:nth(3)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Image 5","type":"SelectorElementAttribute","parentSelectors":["Links"],"selector":"ul.unf-p-thumbs li:nth(4)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"Product Long Description","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-info","multiple":false,"regex":"","delay":0},{"id":"Other Specs","type":"SelectorText","parentSelectors":["Links"],"selector":"div.unf-prop","multiple":false,"regex":"","delay":0},{"id":"Pagination","type":"SelectorLink","parentSelectors":["_root","Pagination"],"selector":".pagination a:nth-of-type(n+2)","multiple":false,"delay":0}]}

@raja Hi. It seems this page differentiates in the structure so... again inspect the code & edit like this:

{"_id":"urun-n11-com","startUrl":["https://urun.n11.com/cep-telefonu-kiliflari/xiaomi-redmi-note-9-pro-9s-kilif-kamera-surgulu-korumali-P114186335"],"selectors":[{"id":"image-1","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"div.thumbsHolder li:nth(0)","multiple":false,"extractAttribute":"data-full","delay":0},{"id":"image-2","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"div.thumbsHolder li:nth(1)","multiple":false,"extractAttribute":"data-full","delay":0}]}

@ViestursWS Hey. I tried to do as you asked but its skipping the images urls. Please check the above long code once and correct it to scrape Image 1 to 5. Just have a look at sitemap and correct it if its wrong please. Waiting for your earlier response. Thanks