<img src="//trc.taboola.com/1222697/log/3/unip?en=page_view" width="0" height="0" style="display:none">


The Knowledgebase articles are deprecated. Please visit the new Guides and Resources here: https://www.uipath.com/developers/guides-and-resources.

Knowledge Base

Web Scraping Structured Data.Get News



This sample gets the first 3 news stories from Mashable about a specific domain.

Steps to automate

  1. Display a list of categories.
  2. Extract first 3 news from that category.
  3. Write them into a text file.


  1. Use "Input Dialog" activity to allow the user to choose a news category.
  2. Use a "FlowDecision" activity to check if the user chose "None". If so, display a friendly message.
  3. Otherwise, get the selected category and open the proper website (mashable.com/Category/).
  4. After the website is opened, extract the news title and the URL of the stories. Close the tab.
  5. For each extracted news, navigate to the corresponding url and extract the content (without photos). Use Design->Screen Scraping Wizard and indicate on screen the region to be extracted. Save the result in a text document. The text document will contain the title and the content of each news story.
  6. Allow the user to select a news category again.