Inner Text but the hard way

Topics: Developer Forum, Project Management Forum, User Forum
Apr 17, 2012 at 1:01 AM


I need to get some text from this web page http://openbook.etoro.com/ahanit/#/profile/Trades/ I want to use the trade feed for my program to analyse the sentiment of the markets.

I used the VB browser control and the get element command but its not working. The problem is that whenever my browser starts to open the page I get java scripts errors. Every help is welcome



I tried with DOM but seems that i dont quite understand what i need to do :) Here is what i get until now

 

Dim code As String Using client As New WebClient

        code = client.DownloadString("http://openbook.etoro.com/alemzolota/#/profile/Trades/")
   
End Using

   
Dim htmlDocument As IHTMLDocument2 = New HTMLDocument(code)
    htmlDocument
.write(htmlDocument)


   
Dim allElements As IHTMLElementCollection = htmlDocument.body.all

   
Dim allid As IHTMLElementCollection = allElements.tags("id")
   
Dim element As IHTMLElement

   
For Each element In allid
        element
.title = element.innerText
        MsgBox
(element.innerText)

   
Next

Thank you :)