I have read that HTMLAgility 1.4 is a great solution to scraping a webpage. Being a new programmer I am hoping I could get some input on this project. I am doing this as a c
The beginning part is off:
HtmlDocument doc = new HtmlDocument(); doc.LoadHtml("http://localhost");
LoadHtml(html) loads an html string into the document, I think you want something like this instead:
LoadHtml(html)
HtmlWeb htmlWeb = new HtmlWeb(); HtmlDocument doc = htmlWeb.Load("http://stackoverflow.com");