Extract Structured Data

Reads a repeating list on a web page (cards, list rows, tables) as a DataTable; if a next page button is defined, it goes through the pages in turn. Works only in the browser. The list and the next page button are specified with selectors in the designer; the selectors and columns are set in the Configure Extraction window. If the list is not found on the page or no column is defined, the activity throws an error; version 1.1.4 or later of the PAW Robot browser extension is required.


⬅️INPUT

Parameter

Type

Required

Description

MaxResults

Int32

❌ No

Maximum number of rows to read across all pages. Default: 100. If 0 or less, all rows are read.

DelayBetweenPages

Int32

❌ No

Time to wait after clicking the next page button before reading the page (milliseconds). Default: 1000.

NextPageTimeout

TimeSpan

❌ No

Maximum time to wait for the rows to change after clicking the next page button or scrolling the list; if they do not change, it counts as the last page. If empty or 0, 10 seconds.

Timeout

TimeSpan

❌ No

Maximum time to wait for the list to appear on the page. If empty or 0, 30 seconds. If the list is found but empty, it waits 3 more seconds for rows.

SimulateClick

Boolean

❌ No

If True, the next page button is clicked within the page without using the mouse; if False, the button is scrolled into view and clicked in its center with the mouse. Default: True.

ScrollToLoad

Boolean

❌ No

If True and no next page button is defined, the list is scrolled so that rows not yet loaded are also read (virtualized or endless lists). Before reading, the list is scrolled to the top; reading ends when scrolling reaches the end of the list.


➡️OUTPUT

Parameter

Type

Description

Result

DataTable

The rows read. Columns carry the names given in the window, and all values come as text (String); empty column names become ColumnN, and a number is appended to duplicate names.


Usage

The canvas has the Configure Extraction and Highlight buttons and the Max Results and Result fields. Highlight shows the list on the screen. In the Configure Extraction window:

  • With Select Table, Ctrl + Click a field in one row of the list (e.g. the name in the first row). The robot finds the surrounding repeating list and its fields that have values on the page and adds them as columns; if the list cannot be found from a single field, you are asked to Ctrl + Click the same field in another row as well. When a list is defined, Select Table opens the selector window.

  • With Add Column, another field in any row is added as a column. For each column, the name and the information to read (Text, Link URL, Image URL or an Attribute) are selected; columns are reordered with Move up / Move down and deleted with Remove column.

  • With Indicate Next Button, Ctrl + Click the button or link that opens the next page. If it is not defined, only the current page is read. The button's selector is changed with Edit Selector and deleted with Remove.

  • When there is no next page button, the Load more rows by scrolling the list (virtualized or endless lists) box sets the ScrollToLoad value.

  • Refresh Preview shows the rows read from the current page, Start Over resets the definition, and Save writes the settings to the activity.

At run time, reading ends when the next page button is not found, is disabled or hidden, when the page does not change after the click, when a previously read page is returned to, or when MaxResults rows are reached. On pages that keep the previous rows and add new ones ("load more"), only the new rows are taken.