Extract multiple values from html page for c#

前端 未结 2 1474
说谎
说谎 2021-01-29 08:32

I have this from html page source

2条回答
  •  [愿得一人]
    2021-01-29 08:51

    You can do it like this using htmlAgilityPack:

    HtmlDocument doc = new HtmlDocument();
    doc.Load(yourStream);
    
    List lst=doc.DocumentNode.SelectNodes("//h5[class='icn-venue']")
                        .Select(x=>x.InnerHtml)
                        .ToList();
    

提交回复
热议问题