UiPath Studio Guide

Example of Using Data Scraping

To better understand how you can take advantage of the data scraping functionality, let’s create an automation that extracts some specific information from Amazon.


It is recommended to run your web automations on Internet Explorer 11 and above, Mozilla Firefox 50 or above, or the latest version of Google Chrome.

Let’s say you are a sports gear vendor and are interested in finding out the latest prices for volleyball balls on Amazon. You can do the following:

  1. Open Internet Explorer and navigate to www.amazon.com.
  2. In the search box type "volleyball ball" and press Enter. Results are displayed in the web page.
  3. In Studio, on the Design tab, in the Wizards group, click Data Scraping. The Extract Wizard is displayed.
  4. Following the wizard, select the first and last items in the web page. The Configure Columns wizard step is displayed.
  5. Select the Extract URL check box.
  6. Change the name of the column headers.
  1. Click Next. A preview of the data is displayed and the fields you selected are highlighted in the web browser.
  1. Click the Extract Correlated Data button. The Extract Wizard starts again.
  2. Following the wizard again indicate the prices of the items. You get to the Configure Columns step.
  3. Change the name of the new column, and click Next. The data preview is displayed.
  1. (Optionally) Change the order of the columns by dragging them in place.
  2. Click Finish. The Indicate Next Link window is displayed prompting you to indicate the Next button if the spans more than one page.
  3. Click Yes and select the Next Page button in Amazon. The project is saved and displayed in the Designer panel. Note that a data table variable, ExtractDataTable, has been automatically generated.
  4. Drag an Excel Application Scope activity under the Data Scraping container.


Install the Excel activities package using the Manage Packager to have access to these activities.

  1. In the Properties panel, in the WorkbookPath field, type the file path of an existing Excel file to which you want to write the data.
  2. In the Variables panel, change the scope of the automatically generated data table variable to Sequence.
  3. In the Excel Application Scope, drag a Write Range activity.
  4. In the Properties panel, in the DataTable field, add the ExtractDataTable variable. The final project should look as in the following screenshot.
  1. Press F5. The automation is executed.
  2. Open the Excel file you used at step 15. Note that all columns are populated correctly.