Sure there is. Look in Purearea.net for code to get the html of a page, use it and get the html of the page you posted. Then in your PB program look for the table with the horse racing stuff... basically it's just doing a search for "<table", but, many pages use tables as a part of their website template. So, you have to look yourself the HTML of a page, look for the table you need and do a more flexibler search, like: "<table id='HorseRacing'". Then, just look for the next </table>, and copy the text into a buffer, after that you can save the buffer to a file, or do whatever you want...
I think this isn't harD?
EDIT: I looked the source of that horse race site, you should do the equivalent as I'm doing here:
Code: Select all
URL$="http://www.attheraces.com/card.asp?raceid=105462&meetingid=18436&date=2006-04-21&ref=FastFixtures&nav=racecards"
HTML$=GetPageHTML(URL$)
StartPos=FindString(HTML$, "<table id="+Chr(34)+"oddsComparison"+Chr(34), 0)
EndPos=FindString(HTML$, "</table>", StartPos)
HorseTable$=Mid(HTML$, StartPos, EndPos-StartPos)
; Now you have the HorseTable$ to play around with.
EDIT2: I have made this procedure which gets the HTML of a page.
Code: Select all
Procedure$ GetPageHTML(URL$)
Static hInternet, HTML$, Bytes
If LCase(Left(URL$, 7))="http://"
hInternet=InternetOpenUrl_(InternetOpen_("Agent", 0, 0, 0, 0), @URL$, "", 0, 0, 0)
HTML$=Space(10000) ; Create a 10Kb buffer. (Make it bigger for bigger sites)
If hInternet
InternetReadFile_(hInternet, @HTML$, Len(HTML$), @Bytes)
InternetCloseHandle_(hInternet)
HTML$=Mid(HTML$, 0, Bytes)
ProcedureReturn HTML$
EndIf
EndIf
EndProcedure