SQUIDD
Well-known Member
- Joined
- Jan 2, 2009
- Messages
- 2,126
- Office Version
- 2019
- 2016
- Platform
- Windows
Good morning all
Im a bit stuck trying to get information from a pasricular website.
please see below a page from the website.
http://greyhoundbet.racingpost.com/...910&track_id=7&r_date=2010-03-12&r_time=11:03
My problem is im trying to obtain the traps numbers
so in the example page
1st position was trap 6
2nd position was trap 3
and so on
i can see the wording in the 1st container as "big trap 6", but cannot seem to extract that. If i can get that wording out for each of the 6 containers im good, but im lost on this one.
any help will be hugly appriciated.
code below that grabs the 1st position and puts out a message box
Im a bit stuck trying to get information from a pasricular website.
please see below a page from the website.
http://greyhoundbet.racingpost.com/...910&track_id=7&r_date=2010-03-12&r_time=11:03
My problem is im trying to obtain the traps numbers
so in the example page
1st position was trap 6
2nd position was trap 3
and so on
i can see the wording in the 1st container as "big trap 6", but cannot seem to extract that. If i can get that wording out for each of the 6 containers im good, but im lost on this one.
any help will be hugly appriciated.
code below that grabs the 1st position and puts out a message box
Code:
Sub getinfo()
Set ie = CreateObject("InternetExplorer.Application")
With ie
link = "http://greyhoundbet.racingpost.com/#result-meeting-result/race_id=1015910&track_id=7&r_date=2010-03-12&r_time=11:03"
ie.navigate link
ie.Visible = True
Do While ie.Busy: DoEvents: Loop
Do Until ie.ReadyState = READYSTATE_COMPLETE: DoEvents: Loop
End With
Application.Wait (Now + TimeValue("00:00:03"))
Set doc = ie.document
MsgBox (doc.getElementsByClassName("place")(0).innerText)
End Sub