dotnetcore / DotnetSpider

DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
MIT License
3.98k stars 1.04k forks source link

我该如何获取多个元素 #227

Closed JHeLiu closed 5 months ago

JHeLiu commented 2 years ago

比如

("//ul/li")

这个库我该如何遍历它

lovetjj commented 1 year ago

用Nodes去获取多个

zlzforever commented 1 year ago

HtmlDocument.SelectNodes("{xpath}")