Download source of URL as string

2020-05-03 01:26发布

问题:

I want my code to download the source/html of a website and be stored as a string. For example

Dim source as string = html of website

回答1:

This should work

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


标签: vb.net