Html 是否通过webbrowser从表中获取内容?
我有下表Html 是否通过webbrowser从表中获取内容?,html,.net,vb.net,visual-studio,webbrowser-control,Html,.net,Vb.net,Visual Studio,Webbrowser Control,我有下表 <table class="table1"> <tbody> <tr> <th></th> <th>SEQ</th> <th>LOGIN</th> <th>
<table class="table1">
<tbody>
<tr>
<th></th>
<th>SEQ</th>
<th>LOGIN</th>
<th>WHATSAPP</th>
<th>E-MAIL</th>
</tr>
<tr>
<td><a href="http://www.google.com/">1</a></td>
<td><a href="http://www.google.com/"></a></td>
<td><a href="http://www.google.com/">name</a></td>
<td><a href="http://www.google.com/">99 999999999</a></td>
<td><a href="http://www.google.com/">xxxxxxx@hotmail.com</a></td>
</tr>
</tbody>
</table>
@Josh部分这是表中没有类、id或名称的问题。是否检查了HtmlAgilityPack?下一个URL应用于C#,但您可以了解HAP的用途:
Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("table")
For Each CurElement As HtmlElement In PageElement
If (CurElement.GetAttribute("className") = "table1") Then
TextBox1.Text = CurElement.InnerHtml
End If
Next