【发布时间】:2017-07-03 19:19:12
【问题描述】:
我是 HTML 敏捷包的新手,我需要获取网页上的一些值但不知道如何获取。希望你能帮助我。
最好的问候。
示例 HTML 部分:
...
<div id="page-bgtop">
<div id="page-bgbtm">
<div id="content">
<div class="post">
<div class="entry">
<center>
<div/>
<div>
<table class="CSSTableGenerator" cellspacing="0" cellpadding="4" border="0" id="GridView2" style="width: 98%; border-collapse: collapse;">
<tbody>
<tr style="font-weight: bold;">
<tr style="background-color: rgb(239, 243, 251);">
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">506</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">29/06/2017</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">4</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">20</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">21</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">32</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">43</a>
</td>
<td>
<a href="Super-Loto-Cekilis-Sonucu.aspx?ID=506.Hafta-29/06/2017-Super-Loto-Sonucu">47</a>
</td>
</tr>
<tr style="background-color: white;">
<td>
...
我想得到的值: 506 2017 年 6 月 29 日 4 20 21 32 43 47
PS:这只是一个示例html部分,有很多行值。
【问题讨论】:
标签: html html-parsing html-agility-pack