6
Reply

How Should I Use HTMLAgilityPack In MVC 5.2

Ask a question
Hello
 
How Should I Use HTML Agility Pack in Asp.net mvc5.2 ?
 
this is my all of code :
HtmlWeb web = new HtmlWeb();
HtmlDocument document = web.Load("http://www.varzesh3.com/livescore");
HtmlNode node = document.DocumentNode.SelectNodes("//div[@id='anc']").First();
 foreach (HtmlNode item in nodes)
{
Console.WriteLine(item.InnerHtml);
}

Answers (6)