WebClient client = new WebClient();

       MemoryStream ms = new MemoryStream(client.DownloadData("http://XXX?StockNo=0050"));

       HtmlDocument t = new HtmlDocument();

       t.Load(ms, Encoding.UTF8);

       var k = t.DocumentNode.Descendants("div");

       var g = t.DocumentNode.Descendants("strong").FirstOrDefault(s => "div".Equals(s.ParentNode.Name));

 

 

, , , , , , , , , , ,

倧齊 發表在 痞客邦 PIXNET 留言(0) 人氣()