将URL源代码下载为字符串

时间:2017-03-03 18:47:25

标签: vb.net

我希望我的代码下载网站的源/ html并存储为字符串。 例如

Dim source as string =网站的html

1 个答案:

答案 0 :(得分:1)

这应该有效

Dim thesource As String = New System.Net.WebClient().DownloadString("http://the site u wanna look@")
相关问题