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));
文章標籤
全站熱搜