【发布时间】:2012-07-10 09:59:53
【问题描述】:
我正在尝试使用 Html Agility Pack 从网页中提取表格。到目前为止,我已经设法在它方面取得了一些进展。这是我目前的代码
Dim web As New HtmlAgilityPack.HtmlWeb()
Dim htmlDoc As HtmlAgilityPack.HtmlDocument = web.Load("--Website url--")
Dim html As String = htmlDoc.DocumentNode.OuterHtml
Dim tabletag = htmlDoc.DocumentNode.SelectNodes("//table")
基本上我需要找到一个带有以下html标签的表格
<table width="100%" border="0" cellspacing="0" cellpadding="3" summary="Contains search results">
知道如何将表格搜索减少到该特定表格吗?
【问题讨论】:
标签: html vb.net web-scraping html-agility-pack