Sub AppStart (Args() As String)
Dim s As String = $"<div class="playerAvatarAutoSizeInner">
<div class="profile_avatar_frame">
<img src="https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/items/465200/e89b3a70625c980c3d68869f5cdb1da9baa447f8.png">
</div>
<img src="https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/items/1504020/397b0a7e2d1355bca92d3e803270f7947ba973aa.gif">
</div>"$
parser.Initialize
Dim root As HtmlNode = parser.Parse(s)
Dim playerAvatarAutoSizeInner As HtmlNode = parser.FindNode(root, "div", parser.CreateHtmlAttribute("class", "playerAvatarAutoSizeInner"))
If playerAvatarAutoSizeInner.IsInitialized Then
Dim images As List
images.Initialize
LookForImgRecursive(playerAvatarAutoSizeInner, images)
Log(images)
End If
End Sub
Private Sub LookForImgRecursive (parent As HtmlNode, result As List)
If parent.Children.IsInitialized = False Then Return
For Each child As HtmlNode In parent.Children
If child.Name = "img" Then
result.Add(parser.GetAttributeValue(child, "src", ""))
Else
LookForImgRecursive(child, result)
End If
Next
End Sub