C# 解析html 的工具库

使用这个工具 HtmlAgilityPack

var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(html);
var nodes = doc.DocumentNode.SelectNodes("//table[@id='game_table']/tbody/tr").Skip(1);
while (nodes.Count() > 0)
{
var node = nodes.First();
var style = node.Attributes["style"].Value;
    if (style == "display:;")
    {
  nodes = nodes.Skip(1);
  continue;
    }

}

大道三千,条条皆可证道。道心不可失。
原文地址:https://www.cnblogs.com/aashui/p/14980839.html