Hi!
Is it possible to get data from a hmtl page? I would like to "grab" the stock course from the stockmarket page. Should i use the Microsoft Internet Controls or?
Any ideas??
/Smirre
Printable View
Hi!
Is it possible to get data from a hmtl page? I would like to "grab" the stock course from the stockmarket page. Should i use the Microsoft Internet Controls or?
Any ideas??
/Smirre
Maybe the URLDownloadToFile api function may help you? It's a lot better..less buggier than the MSInet Control.
Try using WebBrowser, this is how I extract the latest soccer news hehe.
Can't rem whether innerHTML or outerHTML extract the HTML source as well, try it out urself. :>
Regards.
KT
----------------------------------------
Private Sub Command1_Click()
WebBrowser1.Visible = True
WebBrowser1.Navigate "http://www.soccernet.com/england/today/results/prem.html"
Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
'text1.Text = WebBrowser1.Document.documentelement.innerHTML
text1.Text = WebBrowser1.Document.documentelement.outerHTML
End Sub