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);
}
Ravi PatelRank #439 · 5.7K reputationPosted Nov 2, 2015, 7:30 AM EST
amir mohamadi13 reputationPosted Nov 2, 2015, 8:09 AM EST
@{
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 PatelRank #439 · 5.7K reputationPosted Nov 2, 2015, 5:20 PM EST
amir mohamadi13 reputationPosted Nov 2, 2015, 8:37 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 2, 2015, 8:55 PM EST
amir mohamadi13 reputationPosted Nov 3, 2015, 7:02 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts