HtmlAgilityPack

http://htmlagilitypack.codeplex.com/wikipage?title=Examples

http://nuget.org/packages/HtmlAgilityPack

                HtmlAgilityPack.HtmlWeb web = new HtmlAgilityPack.HtmlWeb();
                
                HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();

                doc.LoadHtml(page1);


                var node = doc.DocumentNode.SelectNodes("/html/body");
posted @ 2014-10-27 16:30  张保维  阅读(128)  评论(0编辑  收藏  举报