Oddschecker

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Postby danjuma » Sun Oct 17, 2010 6:56 pm

danjuma wrote:
osknows wrote:I've come up with a completely different way of doing this now. This version first navigates to oddschecker and amends the cookie to include the required settings. Hopefully this should work much quicker than opening and instance of IE

http://www.mediafire.com/?b2c8skcxazdv8bb

Dan - the main differences are that OC have changed some of the identifying tags in their pages, also only the data based on the settings are sent rather than previously where all odds types were in the source code.


Os,

Download link coming up invalid link! May be you have temporarily deleted it to amend something, will try again in a few minutes. Cheers


Ok, now downloaded fine. Thanks
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Sun Oct 17, 2010 7:25 pm

That's it babeee, working fine, GENIUS !!!! :D

Just tried it with tomorrow's racing, albeit the books just displaying SP for now. Odds updating fine for both BA & OC, no freezing, and no freezing of BA when I manually select next market (and using Ian's formula for determining the OC URL in cell BA1). Will give it a proper testing tomorrow when the books start displaying their odds.

Many thanks for this Osknows. All your efforts and hardwork greatly appreciated. :D
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Oct 25, 2010 12:45 pm

Looks like they have done something to their website again. Sheet now doing the same thing as before - correct market and horse names displayed, but no odds for the bookies displayed! B*****ds!!! :x
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby sebaku » Tue Oct 26, 2010 9:20 am

Oddschecker changed something in the code.

I updated last osknows code in 2 places:

1)
carddata = Split(v(k), "onclick=""s")(0)
'load Card data
If InStr(1, carddata, "<TD>", vbTextCompare) > 0 Then
arr(k + 1, 1) = Split(Split(carddata, "<td>")(1), "</td")(0)
End If

2)

'load decimal odds
For m = 1 To UBound(head)
If InStr(1, v(k), "_" & arr(1, m + 4), vbTextCompare) > 0 Then
arr(k + 1, m + 4) = Split(Split(Split(v(k), "_" & arr(1, m + 4))(1), "<")(0), ">")(1)
End If
Next



And it is working for me. :)

sebaku
sebaku
 
Posts: 13
Joined: Tue Jan 22, 2008 6:07 pm

Postby osknows » Tue Oct 26, 2010 1:09 pm

Thanks sebaku!

Here is an updated workbook incase anyone gets stuck http://www.mediafire.com/?c6q1zolxicu1xvq
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby danjuma » Tue Oct 26, 2010 6:50 pm

sebaku and Osknows, many thanks for amending this. Wiil give it a try later or tomorrow when at home.

@Osknows,

As it looks like OC seems to keep changing their code for whatever reason, and I do not expect you to keep utilising your valuable time amending this sheet, could you please advise me what specific method(s) you have adopted on your sheet, so I could google it to see if there are some tutorials on it that I can quickly learn just to apply to amending the sheet when needed. Don't really have the time at present to learn everything on screen scraping, if you know what I mean. :wink: Many thanks.

Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby osknows » Tue Oct 26, 2010 9:45 pm

The code has all the base requirements to extract the data but small tweaks by Oddschecker require slight updates to the main data extraction. The best thing to do if you want to learn is to step through the code line by line by putting a breakpoint (F9) at the start of the code and use F8 to step through each line. Use the View/Locals in the VBA editor to view what each variable is holding and if things change you'll get a feel fo what's right or wrong and can change the line of code to get the correct data. I know this may sound complex but after a few tries it becomes easier if you understand what the code is doing. If you get stuck ask away as there seems to be even more very knowledgeable helpers in this wonderful forum :)

Os
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby danjuma » Tue Oct 26, 2010 10:59 pm

osknows wrote:The code has all the base requirements to extract the data but small tweaks by Oddschecker require slight updates to the main data extraction. The best thing to do if you want to learn is to step through the code line by line by putting a breakpoint (F9) at the start of the code and use F8 to step through each line. Use the View/Locals in the VBA editor to view what each variable is holding and if things change you'll get a feel fo what's right or wrong and can change the line of code to get the correct data. I know this may sound complex but after a few tries it becomes easier if you understand what the code is doing. If you get stuck ask away as there seems to be even more very knowledgeable helpers in this wonderful forum :)

Os



Many thanks. :D :D :D
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby Fixador » Fri Nov 12, 2010 1:49 pm

Damn OC - they have done it again !

I am fed up with forking out with rentacoders to rebuild my utility - so am trying to get this working again

stepping through - and forcing cookies on every pass - I am getting at getCookies() cookie="" at the end of the function

... no cookies ??
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby danjuma » Fri Nov 12, 2010 7:45 pm

Fixador wrote:Damn OC - they have done it again !

I am fed up with forking out with rentacoders to rebuild my utility - so am trying to get this working again

stepping through - and forcing cookies on every pass - I am getting at getCookies() cookie="" at the end of the function

... no cookies ??


Fixador, what version of OS sheet are you using, because mine is still working, just tried it now.
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby Fixador » Fri Nov 12, 2010 7:55 pm

Hi Dan,

XP home SP3
Excel 2003

added project references :-

'Microsoft XML v6.0
'Microsoft VBScript Regular Expressions 5.5

and contemplating adding winhttp services - as ( fiddling in the dark ! ) suspect i am getting crap all for the variable "ie" when watching "locals" window.

I cant figure out whether i have managed to "Set" ie

ie.visible does nothing ( forlorn hope ! )


Mucking about with windows api calls i leave to the pro's - but..... the devil drives !
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby Fixador » Fri Nov 12, 2010 8:01 pm

Butchered the code so i can operate independent of Gruss ( after racing over etc )... so from a cmd button :-

Code: Select all
Private Sub CommandButton1_Click()
      'With ThisWorkbook.Sheets(Target.Worksheet.Name)
       With ThisWorkbook.Sheets(1)
       

        'Debug.Print "Limit = ", Hour(.Range("b2")) * 60 * 60 + Minute(.Range("b2")) * 60 + Second(.Range("b2")), time, time + 60
       
        'If .Range("F2").Value <> "Suspended" And .Range("F2").Value <> "Closed" And _
        .Range("BA2").Value <> "Off" And Hour(.Range("b2")) * 60 * 60 + Minute(.Range("b2")) * 60 + Second(.Range("b2")) >= time + 60 Then
        ' time = Hour(.Range("b2")) * 60 * 60 + Minute(.Range("b2")) * 60 + Second(.Range("b2"))
                'getodds from oddschecker [url, worksheet name]
               
                'force it now - cause i'm not getting any !
               
                set_cookie
               
                If Not sc Then set_cookie
               
                Debug.Print "sc =  "; sc
               
                'getodds .Range("BA1").Value, Target.Worksheet.Name
                getodds .Range("BA1").Value, "Market1"
                Debug.Print "check through done "   'link ok
        'End If
        End With
End Sub


..haven't started butchering module1 ......... yet !
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby Fixador » Fri Nov 12, 2010 8:07 pm

its all lies.......

In module1 - i am not convinced ( at all ) that the function set_cookie is working here

hence the variable "ie" remarks

I thought adding " ie.visible " after the "Set ie = .... " was a brilliant insight - but nothing - not a flicker, as a parrot !
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby danjuma » Fri Nov 12, 2010 8:46 pm

Fixador wrote:Hi Dan,

XP home SP3
Excel 2003

added project references :-

'Microsoft XML v6.0
'Microsoft VBScript Regular Expressions 5.5

and contemplating adding winhttp services - as ( fiddling in the dark ! ) suspect i am getting crap all for the variable "ie" when watching "locals" window.

I cant figure out whether i have managed to "Set" ie

ie.visible does nothing ( forlorn hope ! )


Mucking about with windows api calls i leave to the pro's - but..... the devil drives !


Fixador,

What I mean is I am using OS sheet from the link below and it is working fine.

Thanks sebaku!

Here is an updated workbook incase anyone gets stuck http://www.mediafire.com/?c6q1zolxicu1xvq
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby Fixador » Fri Nov 12, 2010 9:19 pm

Agghh ! OS as in osknows - gott yer now ! and not OS as in "operating system" - yer got me there !

yes - using same xls
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

PreviousNext

Return to Discussion

Who is online

Users browsing this forum: No registered users and 31 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.