How to parse this site? It looks like HTML but actually, it is a java web page JSP. StockMarketSite Needed to GET the PSEI data only. been using HTML Agility Pack (But it is JSP file not HTML) here is my code:
HtmlWeb web = new HtmlWeb();
var doc = await Task.Factory.StartNew(() =>
web.Load("http://ift.tt/19TICDG"));
var nodes = doc.DocumentNode.SelectNodes("//*[@id=\"ext - gen311\"]//div//table//tr//td//div//a");
var innertext = nodes.Select(node => node.InnerText);
It Returns me cannot load a null value.
Aucun commentaire:
Enregistrer un commentaire