我有这个网址 www.vipme.com/clothing_c900027 的HtmlDocument 因为他们的网站包含编码字符 ,这里是我的代码
Dim myHtmlDom As HtmlDocument = GetHtmlDocument(requestUrl, item.cookie, "refer", item.pageEncoding)
Dim myProdDom As HtmlNodeCollection = myHtmlDom.DocumentNode.SelectNodes(item.prodPath)
For Each inode As HtmlNode In myProdDom
Dim newProd As New Product()
If (String.IsNullOrEmpty(item.urlPath)) Then
newProd.Url = inode.GetAttributeValue(item.urlAttri, "").Trim()
Else
newProd.Url = inode.SelectSingleNode(item.urlPath).GetAttributeValue(item.urlAttri, "").Trim
newProd.Url = Web.HttpUtility.UrlDecode(inode.SelectSingleNode(item.urlPath).GetAttributeValue(item.urlAttri, "").Trim)
End If