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 |
|---|---|---|---|
|
| ❌ No | Maximum number of rows to read across all pages. Default: |
|
| ❌ No | Time to wait after clicking the next page button before reading the page (milliseconds). Default: |
|
| ❌ 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. |
|
| ❌ 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. |
|
| ❌ No | If |
|
| ❌ No | If |
➡️OUTPUT
Parameter | Type | Description |
|---|---|---|
|
| The rows read. Columns carry the names given in the window, and all values come as text ( |
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
ScrollToLoadvalue.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.