如何使用HtmlAgility oack下载网页内容 [英] How to use HtmlAgility oack to download a contents of a webpage

查看:51
本文介绍了如何使用HtmlAgility oack下载网页内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个ac#应用程序,它从网页中的表中提取数据并对这些数据进行一些计算。



我尝试下载源代码网页并从中提取数据,但它看起来非常繁琐。还有其他方法吗?



提前感谢,

i am creating a c# application which extracts data fro a table in webpage and does some calculations with those data.

I tried by downloading the source code of the webpage and extracting the data from it but it see very tedious. is there any other way out ?

thanks in advance,

推荐答案

使用HTMLAgilityPack。有关文档,我建议使用Html Agility Pack解析HTML文档 [ ^ ]来自4GuysFromRolla.com的Scott Mitchell。
Use the HTMLAgilityPack. For documentation, I recommend Parsing HTML Documents with the Html Agility Pack[^] by Scott Mitchell of 4GuysFromRolla.com.


这篇关于如何使用HtmlAgility oack下载网页内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆