Skip to main content

I am attempting to capture all the <a> tags on a web page, then logging all the hrefs from those a tags. Not sure how to get started, other than using the Loop action.

you could use Loop While Recorder:Capture Object exists - then use wildcards in the selection for the capture so it can be iterated through.
 

A better way would be to captue the webpage as a file, then use a string operation to find each instance of the “<a href=” string and extract the url using something like a regular expression.

There are many different ways to perform this operation, you might need to go back and redefine the process.


Try this: https://botstore.automationanywhere.com/bot/a2019-html-parser-package

Use Search with selector activity or Simple search for elements by tag


Reply