HTMLAgilityPack load AJAX content for scraping
问题 Im trying to scrape a webpage using HTMLAgilityPack in a c# webforms project. All the solutions Ive seen for doing this use a WebBrowser control. However, from what I can determine, this is only available in WinForms projects. At present Im calling the required page via this code: var getHtmlWeb = new HtmlWeb(); var document = getHtmlWeb.Load(inputUri); HtmlAgilityPack.HtmlNodeCollection nodes = document.DocumentNode.SelectNodes("//div[@class=\"nav\"]"); An example bit of code that Ive seen