Get table html put to data grid view vb.net
Hey,
I need to create a program in VB.NET that will retrieve information from the html Table selected information.
I tried to do it using HtmlAgilityPack but unfortunately I do not know what I'm doing wrong.
In addition, the page after login needs a login and password
the page code is like this
<table summary=Group Block" border"0" cellpadding="2">
<tbody>
<tr class="line">
<td nowrap="" align="LEFT"> <a href="odnosnik do strony o informacji.html"><font size="+1" color="#FFFFCC" face="Tahoma, Arial, Helvetica">namehost</font></a> </td>-</td><td align="CENTER">-</td> <td align="CENTER">-</td> <td align="CENTER">-</td> <td align="CENTER">-</td> <td align="CENTER"> <a href="discspace."><img src="green.gif" alt="conn:green:90d00h57m" title="conn:green:90d00h57m" height="16" width="16" border="0"></a></td> </tr> </tbody> </table>```
I need only 3 information to get about name host, time and type host
Re: Get table html put to data grid view vb.net
FYI - If you could format the code first by not only including the BB code tag ([CODE][/CODE] or in your case [HTML][/HTML]) but by also formatting the literal HTML too, that would really help us. This is what the code looks like formatted:
HTML Code:
<table summary="Group Block" border"0" cellpadding="2">
<tbody>
<tr class="line">
<td nowrap="" align="LEFT">
<a href="odnosnik do strony o informacji.html">
<font size="+1" color="#FFFFCC" face="Tahoma, Arial, Helvetica">
namehost
</font>
</a>
</td>-</td>
<td align="CENTER">-</td>
<td align="CENTER">-</td>
<td align="CENTER">-</td>
<td align="CENTER">-</td>
<td align="CENTER">
<a href="discspace.">
<img src="green.gif" alt="conn:green:90d00h57m" title="conn:green:90d00h57m" height="16" width="16" border="0">
</a>
</td>
</tr>
</tbody>
</table>
But before I go any further, could you please provide me with the URL of the website that you're trying to scrape?