dicepackage
04-20-2011, 01:48 PM
I have a program that I want to get the HTML from a website and then extract the information so that I can put it in an access database. The problem is I can retrieve only a portion of the HTML. The site I am using uses frames and JSP. I am not sure which one is the source of the problem. I can right click inside the page itself and go to view source and see everything I need. The problem is I have tried both innerHTML and outerHTML statements but I am unable to get the same code as when I right click and go to view source. Is there some other statement that will get everything or just the data inside this frame?
I am not able to post the link since the site requires a login. I did see someone posted the same problem with the link below so if I can solve it for this one I can probably get it working on mine.
http://www.hockeyligan.se/index.php?estat=%2fc%2fLPlayersPoints.aspx%3fLId%3d195%26NumberOfRows%3dall
Private Sub CommandRun_Click()
Dim wwwAdd As String
wwwAdd = "http://www.hockeyligan.se/index.php?estat=%2fc%2fLPlayersPoints.aspx%3fLId%3d195%26NumberOfRows%3dall"
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate wwwAdd
Do While ie.busy
DoEvents
Loop
MsgBox CStr(ie.Document.body.outerHTML)
End Sub
I am not able to post the link since the site requires a login. I did see someone posted the same problem with the link below so if I can solve it for this one I can probably get it working on mine.
http://www.hockeyligan.se/index.php?estat=%2fc%2fLPlayersPoints.aspx%3fLId%3d195%26NumberOfRows%3dall
Private Sub CommandRun_Click()
Dim wwwAdd As String
wwwAdd = "http://www.hockeyligan.se/index.php?estat=%2fc%2fLPlayersPoints.aspx%3fLId%3d195%26NumberOfRows%3dall"
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate wwwAdd
Do While ie.busy
DoEvents
Loop
MsgBox CStr(ie.Document.body.outerHTML)
End Sub