HtmlAgilityPack.HtmlDocument hd = new HtmlAgilityPack.HtmlDocument(); HttpItemMin item = new HttpItemMin(); item.URL = "http://www.sznews.com/news/node_31180.htm"; HttpResultMin resule = new HttpResultMin(); HttpHelperMin http = new HttpHelperMin(); resule = http.GetHtml(item); hd.LoadHtml(resule.Html); //HtmlAgilityPack.HtmlNodeCollection colist= hd.DocumentNode.SelectNodes("//a[@class='tit']"); IList<HtmlNode> nodes = hd.QuerySelectorAll(".tit "); foreach (var VARIABLE in nodes) { Console.WriteLine(VARIABLE.OuterHtml); }