Scrape all images

Hello experts,

I'm new to web scrapping and recently I was trying to scrape images from this ecommerce site, Lazada. However, I only managed to scrape the first image. I know this kind of question has been asked many times and I've also read the other topics about scraping multiple images but still failed to get all the images scraped.

{"_id":"xiaomimobiles","startUrl":["https://www.lazada.com.my/shop-mobiles/?spm=a2o6s.10415192.0.0.6f6e3bb9a47Frc&xiaomi-official-store&from=wangpu&sc=KVUG&q=All-Products"],"selectors":[{"id":"productlink","type":"SelectorLink","parentSelectors":["_root"],"selector":".c16H9d a","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["productlink"],"selector":"span.pdp-mod-product-badge-title","multiple":false,"regex":"","delay":0},{"id":"images","type":"SelectorImage","parentSelectors":["productlink"],"selector":"img.item-gallery__thumbnail-image","multiple":true,"delay":0}]}

BTW, some products may have 3-4 images while others can have up to 5-6 images.

Thanks and really appreciate your guidance.

Also have the same problem too... Hope someone replies soon.

The Images selector only select 1 image per data cell, so if you check your data, you will have a multiple rows with the same product name, but different image attached to it. You have 3 possibilities on how to deal with it:

  1. Create multiple selectors - Image 1, Image 2, Image 3,... and select each of the images separately.
  2. Keep continuing to use your current method and parse the data in 'post-production'. Will involve some data joining.
  3. Use a Grouped selector with the attribute name 'src'. This will get all the images on the same row, but also will need some 'post-production' to clean them up and make the look a bit more presentable.

In my data preview it shows the 3 images, however after scrapping completed, I only get one image.

  1. As I mentioned, the products have different number of images. By creating multiple image selector will be difficult since I do not know the maximum number of images.

  2. I'm not to sure I understand what you mean here. Sorry, I'm a newbie.

  3. Data preview only give me this

{"_id":"xiaomimobiles","startUrl":["https://www.lazada.com.my/shop-mobiles/?spm=a2o6s.10415192.0.0.6f6e3bb9a47Frc&xiaomi-official-store&from=wangpu&sc=KVUG&q=All-Products"],"selectors":[{"id":"productlink","type":"SelectorLink","parentSelectors":["_root"],"selector":".c16H9d a","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["productlink"],"selector":"span.pdp-mod-product-badge-title","multiple":false,"regex":"","delay":0},{"id":"Images","type":"SelectorGroup","parentSelectors":["productlink"],"selector":"div.next-slick-list","delay":0,"extractAttribute":"src"}]}

Did I do it wrongly?

Anyone willing to help/guide?

Hi!
I'm new too.
Grouping images with 'src' is working!
Check on your site.