Data scraping

Now, we will extract the customer names from the displayed customer details using the Data Scraping feature in UiPath. Follow these steps:

  1. Click on Data Scraping in the top ribbon:

  1. In the Extract Wizard that pops up, click on Next. Choose the first customer on the list (for example, Amazon). The wizard will prompt you with an option to extract the whole table. We'll choose No as we only need the customer names for this project.
  2. Click Next and select another element for the Data Scraping wizard to be able to identify the table. Point to the last customer on the list (for example, Salesforce). Click Next.
  3. On the next screen, provide a column name for the data we are extracting. Let's call it Name since the data is customer names. Click Next:

  1. Now, you'll be shown a preview of the data that you extracted. Check the data and click on Finish, as shown in the following screenshot:

  1. Choose No in the dialog that asks whether the data is spanning multiple pages. You will find the Extract structured Data activity within the Data Scraping Sequence that was created and appended at the bottom of the workflow.
  2. Go ahead and copy this activity before pasting it within the Try block under Anchor Find. In the properties for the Extract activity, remove the ExtractDataTable variable. We will add a new variable in its place in the next step:

  1. Create a new DataTable variable called dtCompanyList to store the customer list that contains the names of companies that will be passed as input to Crunchbase.com. We'll add this as the output for the Extract Structured Data activity. In the Variable pane, set its scope to Main Sequence
  2. Once we have copied what is needed, make sure to delete the Data Scraping Sequence that was created automatically.

That's all for the Try block. Next, we'll handle the exceptions in the Catch block.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.107.1