I have been trying off and on for the past couple of days to get the text from an HTML element into my listbox. The URL is https://www.roblox.com/users/88510187/favorites#!/places and I am trying to scrape the favorite places of the user, for this instance the first would be "B is for build" here is what I have most recently tried and get nothing.
Private Sub test3()
Dim divs = WebBrowser1.Document.Body.GetElementsByTagName("div")
For Each d As HtmlElement In divs
If d.GetAttribute("className") = "text-overflow item-card-name ng-binding" Then
ListBox1.Items.Add(d.OuterText)
End If
Next
End Sub
I've changed the sub around many times playing with inner and outer text and Html but cannot seem to get just plain text. What on earth am I missing?