- Robotic Process Automation Projects
- Nandan Mullakara Arun Kumar Asokan
- 334字
- 2021-06-24 16:14:32
Data scraping
Now, we will extract the customer names from the displayed customer details using the Data Scraping feature in UiPath. Follow these steps:
- Click on Data Scraping in the top ribbon:
- 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.
- 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.
- 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:
- 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:
- 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.
- 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:
- 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.
- 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.
推薦閱讀
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- C++程序設計教程
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Python入門很簡單
- Learning Docker
- Python從菜鳥到高手(第2版)
- React Native Cookbook
- C語言程序設計
- Linux網絡程序設計:基于龍芯平臺
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- Babylon.js Essentials
- Getting Started with Eclipse Juno
- 深入淺出Go語言編程
- Python期貨量化交易實戰