BROWSER Scrape table data function

The BROWSER Scrape table data function in RPA.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to scrape table data across multiple pages.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Scrape table data function allows you to scrape table data across multiple pages, clicking a ‘next’ button between pages to collect all data.


Setting it up

To use the BROWSER Scrape table data function, follow these instructions:

{{popups:rpas/add:action=browser-scrape}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Scrape table data function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the BROWSER Scrape table data option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Table elementYesTextSelector to identify the table element to scrape.
Selector typeYesSelectXPathMethod to locate the table element.
Next page buttonNoTextXPath of the next page button. If omitted, only scrapes the current page.
Max pagesYesNumber10Maximum number of pages to scrape (1–100).
Wait (seconds)YesNumber1Seconds to wait between page navigations (0–30).
VariableNoTextscrapeVariable name to store the scraped data.

Output variables

VariableTypeDescription
VariableArrayA list of dictionaries, where each dictionary is a row with column headers as keys.

Errors

ErrorDescription
Browser not openNo browser session is active.
Element not foundThe table element could not be found.
Not a tableThe selected element is not a valid HTML table.

Tips

  • If there is no pagination, leave the next page button empty to scrape only the current page.
  • Increase the wait time if the next page takes longer to load.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.