i am using Html Agility Pack to fetch data from website(scrapping)
My problem is the website from i am fetching the data is load some of the content after few seconds of page load.
SO whenever i am trying to read the particular data from particular Div its giving me null.
but in var page
i just not getting the division reviewBox
..becuase its not loaded yet.
public void FetchAllLinks(String Url)
{
Url = "http://www.tripadvisor.com/";
HtmlDocument page = new HtmlWeb().Load(Url);
var link_list= page.DocumentNode.SelectNodes("//div[@class='reviewBox']");
foreach (var link in link_list)
{
htmlpage.InnerHtml = link.InnerHtml;
}
}
so can anyone please tell me how to delay the request that
HtmlDocument page = new HtmlWeb().Load(Url);
will load the full data in page
varibale