Webpage Extraction

Hi All,

I am trying to build a bot that you pass it a Trademark number and it accesses the UKIPO website and then returns the data from the webpage.

The site is reasonably structured but isn’t a table and the data points seem to move. So having difficulty tracking down the right selector

What would you recommend as the best way to extract data off the site?

Example Pages:-


1 Like

Hey @barryrodick,

That’s the great thing to do using UiPath with ease.

UiPath has the ability to also track UiElements based on an anchor. A fixed UI Element to find a required element to perform actions.

I have run the sample code in both of your pages without any change in code which works fine irrespective of element position.

Please find the sample code attached - WebScrap.zip (2.5 KB)

So here the approach we used is,

  1. Find the field label which has a reliable selector (You can check the sample code to understand)
  2. Do the required action in the intended element

Let know for any queries.

Thanks :slight_smile:

@barryrodick
have a check on following:

  • find children and filter on the dl elements
  • loop over the found dl elements with a for each and retrieve the value of corresponding dd, dt elements

Thank you @ppr and @Nithinkrishna

I think the anchoring might be the easiest way of running it.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.