dcsimg
Results 1 to 2 of 2

Thread: Get table html put to data grid view vb.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2018
    Posts
    1

    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

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,489

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width