Menu

For Loop Elements

This document explains how to use the [For Loop Element] using the "Download Product Images" template as an example. The template is specifically designed to download product images from the first page of Amazon search results. It requires RPA to download images repeatedly.

1. Choose the selector .img.s-image to locate images.

2. To download an image, you need to know its URL link, such as http://xxxx.jpg or https://xxxx.png. In the image element, the value of the src attribute is exactly the URL link. Therefore, we just need to extract the value of the src attribute and save it to a variable "for_elements_item".


3. To download images, we should use [Download File] and use the variable saved in the previous step as the download URL.

Note: The loop works only on the current page.

P.S. You can further learn about the use of [For Loop Element] through the template "Amazon Review Crawl".

Previous
For Loop Data
Next
For Loop Times
Last modified: 2024-06-29Powered by