I am trying to get all the messages from this website into a single column in an excel. However I am facing challenges with scrapping the data as it seems to be unstructured. I also tried getting text and convert it into a datatable to be written in a excel and it was a no - go.
You should use the Find Children activity and filter on items which match selectors related to a ‘message’. Then loop on each child and grab the aaname attribute. You can append each to a file.
This outputs to a text file but should give you the basics of what you need.
Every element on the webpage will have a selector. Those selectors will all have an aaname attribute and in this case that is where the ‘message’ is.
I first exported the full selectors for each message (child.selector.tostring) to a text file and it was evident aaname was the attribute that had the info you needed.
If ‘Extract Structured Data’ activity is not to your needs in future, always consider using Find Children as an alternative, it can often be more appropriate an option.