How to Build a Data-Scraping Robot in UiPath Studio ?
Last Updated :
07 Apr, 2021
Prerequisite: How to Install UIPath Studio Community
In this article, we will learn how to make a simple project using Data Scraping in UiPath Studio. This is a simple application of Robotic Process Automation in which information is extracted from a webpage, get written and stored in an Excel sheet, and then the file is sent to the desired email address. The whole process is automated using RPA.
Note: Depending on the web table from which you are extracting the data create a blank Excel sheet with the same column names and save it. Also, the below task can be performed on UiPath studio X version.
Below is the step-wise approach to develop an RPA project using Data Scraping in UiPath Studio:
Step 1: Open the Uipath Studio and create a new process by clicking on the Process tab.

Step 2: Set the name of the process and give a short description then click on Create.

The Uipath studio will automatically load and add all the dependencies of the project. The design page will get opened, click on OPEN MAIN WORKFLOW.

Step 3: Now in the activities panel search for Flowchart activity. Drag and drop it in the designer window.

Step 4: Now in the activities panel search for Open Browser activity. Add it to the sequence. Double-click on it and pass the URL in quotes. Let’s search for Covid live data.

In the properties section, under Input tag select BrowserType as chrome, and under output tag create a UiBrowser variable browserVar by pressing ctrl K.

Step 5: Click on the Data Scraping icon in the design tab.

The Extract Wizard window will get opened.

Now open the URL in the browser as mentioned in the wizard and click on the Next button. Click on any single field in the table, a window will appear asking if you would like to extract data from the whole table, click on YES.

You will see a preview table on the screen, enter 0 (for selecting all) in maximum no. of columns and click on the finish button.

A window will appear asking Is data spanning multiple pages? Click No.

Connect the Data Scraping activity with Open Browser activity. Double-click on DataScraping activity and then click on variables at the bottom you will see that a variable ExtractDataTable has been created with variable type datatable and scope DataScraping.Change the scope to flowchart.

Step 6: Now search for message box activity in the Activities panel. Drag and drop it in the designer window. Pass the message in quotes by double-clicking on it “Data extraction Completed”.
Step 7: Now in the activities panel search for Excel Application Scope activity. Drag and drop it in the designer window. Pass the location of the Excel file created before in quotes. Now search for Write Range activity and drop it in the do section. Change the cell from A1 to A2 and in the data table field pass the ExtractDataTable variable.

In the properties, panel makes sure to uncheck the “Create If Not Exist” option as we have already created an excel file.

Step 8: Now search for message box activity in the Activities panel. Drag and drop it in the designer window. Pass the message in quotes by double-clicking on it “Data writing process Completed”.
Step 9: Now search for Send SMTP Mail Message activity in the Activities panel. Drag and drop it in the designer window.
- In the “To” field, write the email id of the recipient to whom the excel file has to be mailed automatically.
- In the “subject” field, write the desired subject for example “Covid 19 Report”.
- In the “body” field , write the message for example “Hi please find the attachment report”.

Click on Attach files and then create an argument, in the value field pass the location of the Excel file in quotes, and click OK.

Now click on the ‘arguments’ panel and create 2 arguments named Email and Password and in default values write the email address and password of the sender’s email from which the report has to be sent.

In the properties panel, under the host section write PORT as 587 and SERVER as “smtp.gmail.com”, under Logon section in email and password pass the above-created Email and Password arguments, under Receiver section Bcc and Cc fields are optional no need to add them and in the To field, you are already given the receivers address, under Sender section – in From field pass the argument Email (above-created argument having the email address of the sender) and in the name field write the Name.

Step 10: Now search for close tab activity in the Activities panel. Drag and drop it in the designer window. Click on this activity and in the properties panel under the input section pass the browser variable browserVar.
Connect all the activities and save the process using the Save button in the design panel and then click on Run. Your bot is ready!
Note: If you face any error in sending mail go to your Gmail account security settings and turn on LESS SECURE APP ACCESS.
If you follow the above steps your flowchart will look like this:

In this way, one can easily develop an RPA Project using UiPath Studio.
Similar Reads
Scraping COVID-19 statistics using Python and Selenium
Selenium is an open source web testing tool that allows users to test web applications across different browsers and platforms. It includes a plethora of software that developers can use to automate web applications including IDE, RC, webdriver and Selenium grid, which all serve different purposes.
4 min read
How to scrape the web with Playwright in Python
In this article, we will discuss about Playwright framework, Its feature, the advantages of Playwright, and the Scraping of a basic webpage. The playwright is a framework for Web Testing and Automation. It is a fairly new web testing tool from Microsoft introduced to let users automate webpages more
3 min read
Implementing Web Scraping in Python with BeautifulSoup
There are mainly two ways to extract data from a website: Use the API of the website (if it exists). For example, Facebook has the Facebook Graph API which allows retrieval of data posted on Facebook.Access the HTML of the webpage and extract useful information/data from it. This technique is called
8 min read
Robotic Process Automation(RPA) - Notepad Automation using UIPath
In this article, we are going to learn how we can automate the Notepad application using Uipath Studio. This project is a basic application of Robotic Process Automation (RPA). The user just needs to enter the content he/she wants to write in the notepad and name of the file to be saved in that's it
4 min read
Reading selected webpage content using Python Web Scraping
Prerequisite: Downloading files in Python, Web Scraping with BeautifulSoup We all know that Python is a very easy programming language but what makes it cool are the great number of open source library written for it. Requests is one of the most widely used library. It allows us to open any HTTP/HTT
3 min read
Robotic Process Automation(RPA) - Google Form Automation using UIPath
In this article, we are going to learn how we can automate filling the Google Forms using Uipath Studio. This project is a basic application of Robotic Process Automation (RPA). The user just needs to provide the Excel file that holds the data to be entered in the form and that's it, rest of the wor
4 min read
Simple Chatbot application using Python, GoogleAPIKey
Google-GenerativeAI is Google AI Python SDK. It uses Gemini to build AI-powered features. In this article, we will see how to create a Simple Chatbot application using Python GoogleAPIKey. What is Google-GenerativeAI?Google-GenerativeAI is nothing but Google AI Python SDK. It enables to use of Gemin
4 min read
Robotics Process Automation - An Introduction
Imagine having a digital assistant that works tirelessly 24/7, never takes a break, and never makes a mistake. Sounds like a dream, right? This is the magic of Robotic Process Automation (RPA). Instead of humans handling repetitive, time-consuming tasks, RPA lets software robots step in to take over
8 min read
Google Colab - Running ML with Low-Spec Device
Learning about Machine Learning is one of the trending things nowadays. But a lot of people face difficulties, as they don't have a device, that is powerful enough, and there are also a lot of issues, arising due to inefficient systems. So, let's see, how can we overcome this using an easy solution.
3 min read
Creating Your Own Python IDE in Python
In this article, we are able to embark on an adventure to create your personal Python Integrated Development Environment (IDE) the usage of Python itself, with the assistance of the PyQt library. What is Python IDE?Python IDEs provide a characteristic-rich environment for coding, debugging, and goin
3 min read