How to click different url's present in a web page

Can’t guarantee,but if you can use “find children” activity on the webpage or portion(div) where you have the links, try below filters in filter property.

Fetches links and file name contains Data keyword.
<webctrl tag='A' aaname='DATA*'/>

Fetches links where URL is a PDF

<webctrl tag='A' href='*.pdf'/>

Take the output and use in foreach activity with UiElement argument and click activity within it.

Or something like this should also work