Hi, I'm trying to extract the text contained in a webpage. So that I'm using a third pary tool Html Agility Pack. In that they mentioned
HtmlWeb htmlWeb = new HtmlWeb(); HtmlDocument doc = htmlWeb.Load("http://www.msn.com/");
HtmlNodeCollection links = doc.DocumentNode.SelectNodes("//a[@href]");
foreach (HtmlNode link in links)
{
Response.Write(link.Attributes["href"].Value + "
");
}
it is working for me to grab all other links contained in a page. But i want to get all the text data contained in that page. Is it possible?
Did anybody worked with Html Agility Pack before?
Thanks in advance