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();
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);
}
{
Console.WriteLine(item.InnerHtml);
}
amir mohamadiPosted Nov 3, 2015, 12:02 PM
Ravi PatelPosted Nov 3, 2015, 1:55 AM
amir mohamadiPosted Nov 3, 2015, 1:37 AM
Ravi PatelPosted Nov 2, 2015, 10:20 PM
amir mohamadiPosted Nov 2, 2015, 1:09 PM
@{
HtmlWeb web = new HtmlWeb();
HtmlDocument document2 = web.Load("http://www.varzesh3.com/livescore");
HtmlNode[] nodes = document2.DocumentNode.SelectNodes("//div[@id='anc']").ToArray();
foreach (HtmlNode item in nodes)
{
@item.InnerHtml
}
Ravi PatelPosted Nov 2, 2015, 12:30 PM