|
-
Apr 14th, 2012, 02:59 PM
#1
Thread Starter
Addicted Member
download a google result webpage
I'm trying to download a google result webpage. As an example, lets take this url.
https://www.google.com/#hl=en&sclien...w=1272&bih=618
I'm not able to download the content using the below commands. I think it is because the webpage is using java or ajax. How do you download the actual content?
******************
TextBox1.Text = WebBrowser1.DocumentText
or
Dim wc As New WebClient
Dim html As String = wc.DownloadString(TextBox2.Text)
or
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(url)
Dim response As System.Net.HttpWebResponse = request.GetResponse
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim source_code As String = sr.ReadToEnd
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|