Image selector

Returned value

The selector returns the image src. When responsive image configuration is present, Web Scraper attempts to return the largest available image URL.

Configuration

  • Selector - CSS selector for the image element.
  • Multiple type - Controls whether the first image, several image columns or several images in one column are returned.
  • Column count - Number of output columns when several image URLs are split across columns.

Lazy-loaded images

Some pages keep the final image URL in an attribute such as data-src until the image is loaded. When the Image selector returns a placeholder, inspect the element and use an Element attribute selector for the attribute containing the required URL.

Downloading image files

The selector extracts image URLs. Web Scraper Cloud image export can download the files during a scraping job when the sitemap contains an Image selector and the account uses a supported Scale-plan storage export.

Related