Html Agility PackK 与 Sharp Query 对比?
我正在编写一个 Web 应用程序,它需要我获取 html 文件。我所做的是查询页面中特定 div 中包含的内容。根据我的在线研究,我得到了一个跨 HTML 敏捷包和 Sharp Query。我想知道哪一个更好?
ASP.NET MVC 2、.NET 3.5
I am writting a web application which will require me to purse html files.What I doing is quering for content included in a specific div with in a page. From my research online I came a cross HTML agility pack and Sharp Query. I would like to know which one is better?
ASP.NET MVC 2, .NET 3.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我个人更喜欢 SharpQuery,因为它基于 SgmlReader。 CSS3 选择器也非常漂亮。另一方面,HTML Agility 在 Silverlight、Windows Phone 等平台上更具可移植性,因此,如果您需要这种互操作性,您可能应该选择 HTML Agility Pack。
Personally I prefer SharpQuery as it is based on SgmlReader. Also the CSS3 selectors are really nifty. On the other hand HTML Agility is more portable on platforms such as Silverlight, Windows Phone, ... so if you need this sort of interoperability you should probably choose HTML Agility Pack.