Download and Sign Up
Get a $5 Coupon For Free
English
Getting Started Main Features Examples

【Flowchart Mode】Introduction to the function points of the "Loop" component

2019-01-31 19:19:18
1909 views

Abstract:This tutorial introduces the function points of the loop component. ScrapeStormFree Download

In the “What is a Flow Component” tutorial, we introduced various flow components in the ScrapeStorm Flowchart Mode. Considering the complexity of the “loop” component function, we will describe its function points in more detail in this article.

The “Loop” component consists of a Loop Condition sub-component and an action component, as shown in the following figure:

The loop conditions are set as follows:

Next, we will explain in detail the meaning of these conditions and how to use them.

1. URL List

Using URL List as a loop condition means that the URLs are entered one after the other in the web page, and are switched once per cycle. Generally used to collect content from multiple URLs.

The loop condition of the URL list generally needs to be used with the “Open URL” component, and the “URL” setting item of the “Open URL” component is set to “Use the URL list set in the current loop”.

2. Text List

Using Text List as a loop condition means that text is sequentially input in a web page, and is switched once per cycle.Generally used to collect content corresponding to different keywords in the same website.

The loop condition of the Text List generally needs to be used with the “Input” component, and the “Input” setting item of the “Input” component is set to “Use the text list set in the current loop”.

 

3. Element List

Using Element List as a loop condition means collecting all the same list elements in the web page.

We can generate an XPath by clicking the button to the right of the settings box and then clicking on the list element in the page.

4. Next Page

Using Next Page as a loop condition means looping through the paged elements in the page. We can generate an XPath by clicking the button to the right of the settings box and then clicking on the list element in the web page.

The loop condition of Next Page is generally used in conjunction with the “Click” component, and “XPath of the element” setting item  of the “Click” component is set to “Use the xpath which in the loop”.

5. Dropdown

Using Select List as a loop condition means selecting each option of the drop-down list in the web page in turn. We can generate an XPath by clicking the button to the right of the settings box and then clicking on the list element in the page.

The loop condition of Dropdown is generally used in conjunction with the “Dropdown” component and the setting item of the “Dropdown” component is set to “Use the xpath which in the loop”.