阅读_HTML_MSHTML [英] Reading_HTML_MSHTML
本文介绍了阅读_HTML_MSHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是C#中的一只新蜜蜂,现在我正试图从HTML文件中读取数据.我的查询是html文件中的数据是以表格格式排列的.因此,要从每个单元读取数据,我应该使用< tr>定位到确切的位置< td> 还是有其他方法可以做到这一点.任何帮助将不胜感激.
I am a new bee in c# , right now i am trying to read data from an HTML file . My query is that the data in the html file is arranged in a table format . So to read a data from each cell should i have go to the exact location by using <tr> <td> or is there any other way of doing it. Any help would be deeply appreciated.
感谢&问候.
推荐答案
你好,
您可以使用 WebClient 班级:
You can use the WebClient class:
WebClient client = new WebClient();
string htmlCode = client.DownloadString("http://www.microsoft.com");
这篇关于阅读_HTML_MSHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文