Results 1 to 3 of 3

Thread: Getting data from HTML page?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    Question

    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
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  2. #2
    Guest
    Maybe the URLDownloadToFile api function may help you? It's a lot better..less buggier than the MSInet Control.

  3. #3
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width