开发者

Get the text from a web page

开发者 https://www.devze.com 2023-03-16 15:54 出处:网络
How开发者_开发问答 do I capture the text from the web page? Do I need to get the page source and how?The WebClient object has a method available to do this for you:

How开发者_开发问答 do I capture the text from the web page? Do I need to get the page source and how?


The WebClient object has a method available to do this for you:

WebClient client = new WebClient();
string html = client.DownloadString("http://www.google.com");
0

精彩评论

暂无评论...
验证码 换一张
取 消