从网站下载内容 [英] Download content from website

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

问题描述

如果网页上有一个表格,并且我想从表格中检索该内容,是否有一种特定的方式可以直接从该网页和表格中获取该数据,或者是否有必要通过API连接,这将使我可以使用这些内容?

If there is for example a table on a web page, and I would like to retrieve that content from the table, is there a specific way I can get that data directly from that web page and table, or is it necessary to connect through a API which will make these contents available to me?

推荐答案

您可以使用类 System.Net.HttpWebRequest

http://msdn.microsoft。 com / en-us / library / system.net.httpwebrequest.aspx [ ^ ]。







请查看我过去的答案:

从网页获取特定数据 [ ^ ],

如何从其他网站获取数据 [ ^ ]。



在第一个答案中,我也推荐HTML解析器,请参阅。



-SA
You can use the class System.Net.HttpWebRequest:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].



Please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].

In first answer, I also recommend HTML parser, please see.

—SA


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

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