LIVE ODDS

Please post any questions regarding the program here.

Moderator: 2020vision

Postby alrodopial » Tue Jul 16, 2013 9:20 am

For some unknown reason to me the getLiveShowURLS sub is not running at all. It should be called from inside the public function getLiveShow (first row of code). Anyone else having any ideas?

Use the below code - I had an error and also added a line to "ensure" that the getLiveShowURLS will be running - :?
I dont know if I will be able to test it today

If you get #VALUE errors in cells run the getLiveShowURLS sub manually, once


Code: Select all
Private Sub getLiveShowURLS()
    Dim t As String, p1 As Long, p2 As Long, c As Long
    Dim dayStr As String
    dayStr = Format(Now, "dd-mm-YYYY")
    t = getPage("http://www.sportinglife.com/racing/live-shows")
    p1 = 1
    Do
        p1 = InStr(p1, t, " <a href=" & Chr(34) & "/racing/live-shows/" & dayStr & "/")
        If p1 <> 0 Then
            p1 = p1 + 39
            p2 = InStr(p1, t, Chr(34))
            c = c + 1
            ReDim Preserve liveShowURLS(c)
            ReDim Preserve liveShowRaceTimes(c)
            liveShowURLS(c) = "http://www.sportinglife.com/racing/live-shows/" & dayStr & Mid(t, p1, p2 - p1)
            p2 = InStr(p1 - 300, t, ":")
            If p2 <> 0 Then liveShowRaceTimes(c) = Mid(t, p2 - 2, 5) Else liveShowRaceTimes(c) = ""
            Debug.Print liveShowURLS(c) & " " & liveShowRaceTimes(c)
        End If
    Loop Until p1 = 0
    If Not IsEmpty(liveShowURLS(1)) Then urlsLoaded = True
End Sub
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby yursaduian » Tue Jul 16, 2013 9:45 am

Ok, stage one complete in as much as I've replaced the bit you've posted and at least the BF figures are coming through with no #VALUE! messages in sight but I dont know how it will cope fully until the Liveodds start coming through a few minutes before the first race.

I cant get on this myself today either but will do asap and will report back

Also, sorry but I dont know how to manually run a sub :( - but hopefully I wont need to? :wink:

Thanks again for your efforts
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby GaryRussell » Tue Jul 16, 2013 9:53 am

I've changed my example code to handle timed out requests differently. Now it will just use the data from the previous successful call and instead of waiting 5 refreshes of Betfair prices until the next call it will attempt to capture the live shows on the next price refresh. Hope it helps.

You can download the update Here
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby yursaduian » Tue Jul 16, 2013 10:24 am

Thanks Gary but that returns #VALUE! in my w/sheet
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby yursaduian » Wed Jul 17, 2013 6:20 am

In fact Gary, that returns #VALUE! in your own worksheet?
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby yursaduian » Wed Jul 17, 2013 6:25 am

alrodopial, that code does work better and the betfair figures do now come through but we're back to square one with the original problem and the intermittent feed of the LiveOdds.

The Sporting Life figures keep dropping out :cry:
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby alrodopial » Wed Jul 17, 2013 7:49 am

yursaduian wrote:alrodopial, intermittent feed of the LiveOdds.

........ dropping out :cry:


English isn't my native language, so in simple words you mean .... ?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby yursaduian » Wed Jul 17, 2013 8:48 am

The LIVEODDS stop and start.

The Betfair odds are always constant and seem fine but the Odds from Sportinglife (both decimal and fractional) appear then disappear. For no obvious reason, they are visible then they are not.

Sometimes its only for a split second but it can be for much longer and I sometimes get no figures through at all for an entire race - or most of it anyway

Does this help?
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby alrodopial » Wed Jul 17, 2013 10:20 am

Garry made a very clever change in the last file he posted a couple of posts above. I hope it will solve your problem.
In the Public Function getLiveShow replace the line:
liveShowLastCaptured = Now
with the new one:
If t = "" Then t = liveShowHTML Else liveShowLastCaptured = Now

To manually run a macro in excel 2010:
View->Macros->double click at the macro you want
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby yursaduian » Thu Jul 18, 2013 1:48 pm

Ok, thanks again for all the input on this.

I did try to copy and paste Gary's code but it just wouldn't work. Then I just added the one line as you suggested and it worked fine after that.

It did seem much more settled and the figures came through constantly - until about 4.30 pm that it - when the liveodds suddenly started dropping out again :cry:

Now I'm wondering if it's something at their end causing problems as well? It doesn't make sense to be working one minute and then not the next. Something must cause that and if my worksheet isn't changing then something else must be...?

Is there another site apart from Sporting Life do you know? All the major bookmakers have constantly updated odds, as does Racing Post but is it possible to access a feed somehow?

Whatever happens, thanks again
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby yursaduian » Thu Jul 18, 2013 2:14 pm

It's playing silly buggers again now with no liveodds coming through at all :cry:
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby osknows » Thu Jul 18, 2013 2:25 pm

In Gary's latest example I think he's forgotten to uncomment the line 'web.Send

Remove the apostrophe so it reads web.Send
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby GaryRussell » Thu Jul 18, 2013 2:36 pm

osknows wrote:In Gary's latest example I think he's forgotten to uncomment the line 'web.Send

Remove the apostrophe so it reads web.Send

That's exactly what I did. Sorry for the confusion. I blame it on the heat!
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby yursaduian » Thu Jul 18, 2013 2:44 pm

Ha ha - done that now and it seems to be running ok

Fingers crossed, lets see how it goes today

Cheers chaps :)
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

Postby yursaduian » Thu Jul 18, 2013 2:45 pm

Gary, I wonder if it's this hot in Greece?? :o
yursaduian
 
Posts: 105
Joined: Thu Jul 13, 2006 10:10 pm
Location: Poole

PreviousNext

Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 45 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.