Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > General Topics
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd April 2013, 02:56 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 291
Default Excel Web Query Import Question

Web Query Tables: All

When doing a Import External Data---Web Query
from tatts.com ( Record Macro Method), BEFORE the start of race,
it does not seem to import the clock timer's data of how how many minutes to go before the start of race.
It will Import if it say's anything else if the same page is open in browser, except that particular snippet of data.
So for example, if it shows on the current web page "4M" it will not Import the 4M.
But it it shows CLOSED, INTERIM, PAYING etc, it will Import.

Anyone know how to import that piece of data that shows how many minutes before the start of race, or what Table it's in ?
Or is it as I suspect, Disallowed ?

Thanks
Reply With Quote
  #2  
Old 3rd April 2013, 03:29 PM
Chrome Prince Chrome Prince is offline
Member
 
Join Date: Jan 1970
Posts: 4,366
Default

Puntz,

I believe it's a javascript timer until the status changes to text for closed, interim or paying. That's why it won't import the javascript to text in a web query.
__________________
RaceCensus - powerful system testing software.
Now with over 400,000 Metropolitan, Provincial and Country races!
http://www.propun.com.au/horse_raci...ng_systems.html
*RaceCensus now updated to 30/04/2024
Video overview of RaceCensus here:
http://www.youtube.com/watch?v=W821YP_b0Pg
Reply With Quote
  #3  
Old 3rd April 2013, 04:12 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 291
Default

Thanks CP

I'll work around it, hopefully.
Reply With Quote
  #4  
Old 5th April 2013, 08:10 AM
Martinw Martinw is offline
Member
 
Join Date: May 2012
Posts: 40
Default OnTime

Excel has a timer function that I use to countdown the 30minutes before the race. It gives me regular timed downloads. Below is a sample of the code:-

With wks
ST = TimeSerial(Hour(Time), Minute(Time) + 0, 0)
t = .Range("C3").Value
ST1 = Hour(t - ST) * 60 + Minute(t - ST) 'establishes the time
'for the select case
If t > ST Then 'to prevent roll back after 1min download
Select Case ST1
Case 30 '30 minus a minute

Attached is a sample of what it produces.

Hope this helps.
Ta,
Martin
Attached Files
File Type: xlsx SampleSheet.xlsx (81.5 KB, 490 views)
Reply With Quote
  #5  
Old 6th April 2013, 04:39 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 291
Default

Thanks Martin,
Reply With Quote
  #6  
Old 21st April 2013, 11:09 AM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 291
Default

I have found a work-around using the info that comes in off the web query.
Similar to yours Martin, but I use variables to calculate at certain times rather than fixed times. Reason for this is, the possible changes in advertised start times
and "in the moment" changes of times like late starts etc.

CP, we have found that piece of code, you were right, it is java stuff.
while the guru is working on it, I'm testing a work-around.
Hope to post it a few days, trial and error this VBA.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 05:02 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655