VB8: Read data from webpage
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
1 post
Page 1 of 1
How can I read data from a webpage without using the webbrowser control? I use VB 8.
I have already this code but it using a webbrowser, I doesn't want. Because it's slow...
Please, help me.
I have already this code but it using a webbrowser, I doesn't want. Because it's slow...
Code: Select all
The result is correct. >>> Marcell 747Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Navigate("http://nl.eurobilltracker.com/notes/?id=82644321")
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim tables As HtmlElementCollection = Me.WebBrowser1.Document.GetElementsByTagName("table")
Dim charges As HtmlElement = tables(7)
Dim rows As HtmlElementCollection = charges.GetElementsByTagName("tr")
Dim r As HtmlElement = rows(4)
Dim cells As HtmlElementCollection = r.GetElementsByTagName("td")
Dim c As HtmlElement = cells(0)
txtPageSource.Text &= c.InnerText
End Sub
Please, help me.
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023