Results 1 to 7 of 7

Thread: Programming help

  1. #1


    Did you find this post helpful? Yes | No

    Programming help

    I have some programming questions so if someone is knowledgable and would like to help me out pm me.
    Thanks.

  2. #2


    Did you find this post helpful? Yes | No
    You should ask your questions here first and those who can help could either respond here or send a PM (if it's sensitive information). If your questions has sensitive information, then try asking your question in a vague state without giving out that sensitive information.

    What are you having trouble with?
    "Everyone wants to be rich, but nobody wants to work for it." -Ryan Howard [The Office]

  3. #3


    Did you find this post helpful? Yes | No
    Okay here it goes. I started to look into sports betting about a month ago and have a pretty in depth excel sheet with stats for each game every day. I have been able to find lines that don't reflect what my data shows just looking at stats and I have been very successful for the past month with both nba and nhl. The problem is transferring the stats from websites to excel for each game every day is getting to be really time consuming so I want to write a program that can do that for me. I took a couple of programming classes in college but don't have that much knowledge. I have a friend with a computer science degree that could help me write the program if I told him specifically what to do but he is not interested in gambling so getting him to do the whole thing for me would be impossible. I guess I am just looking for ideas or tips on how I could go about doing this. I'm not sure how to get stats from a website and utilize that on a program or if that is even possible. Any suggestions or help would be greatly appreciated. Sorry this is not a blackjack question but I appreciate everyone's knowledge here and really didn't know who else to ask. Thanks.

  4. #4
    Senior Member Bodarc's Avatar
    Join Date
    Aug 2013
    Location
    136 miles North of West
    Posts
    1,949


    Did you find this post helpful? Yes | No
    Would you mind giving the url of one website from which you want to download info?
    Play within your bankroll, pick your games with care and learn everything you can about the game. The winning will come. It has to. It's in the cards. -- Bryce Carlson

  5. #5


    Did you find this post helpful? Yes | No

  6. #6
    Random number herder Norm's Avatar
    Join Date
    Dec 2011
    Location
    The mote in God's eye
    Posts
    12,476
    Blog Entries
    59


    Did you find this post helpful? Yes | No
    Web-stripping is possible, but a royal pain. First, you need to read the site. This depends on the language used. For example, in VB6, you would use an INet ActiveX object and code something like:

    Code:
        Inet2.URL = "http://xxxxxxxxx"
        Inet2.Protocol = icHTTP
    
        Private Sub Inet2_StateChanged(ByVal State As Integer)
           If State = 12 ThenDoXXX
        End Sub
    
        Public Sub DoXXX()
          Dim vtData$
          NBuff = ""
          vtData = Inet2.GetChunk(1024, icString)
          Do While LenB(vtData) > 0
            NBuff = NBuff & vtData
            vtData = Inet2.GetChunk(1024, icString)
          Loop
        End Sub
    Then, you would have to parse the result in NBuff.
    Then, you would need to get it into Excel. You can create a CSV file and invoke Excel. That’s the easy way. But, if you want to feed it into a current Excel spreadsheet, that is quite difficult and depends on the version of Excel that you have as they keep changing the damn method. Here’s a simple example from CVData of copying some data to Excel using the Excel 14.0 object model:

    Code:
        If Not linkactive Then
            Set xxxapp = CreateObject("Excel.Application")
            Set xxxobjex = CreateObject("Excel.sheet")
            xxxobjex.Application.Visible = True
            linkactive = True
            DoEvents
        Else
            If nam.namsimtable <> OldSimtable Then
                xxxobjex.ActiveSheet.Cells.ClearContents
                xxxobjex.ActiveSheet.Cells.ClearFormats
                OldSimtable = nam.namsimtable
            End If
        End If
        DoEvents
            With frmsimout.G1
                .Row = 0
                .Col = 0
                .RowSel = .Rows - 1
                .ColSel = .Cols - 1
                Clipboard.Clear
                Clipboard.SetText .Clip
            End With
        With xxxobjex.ActiveSheet
        .Paste Destination:=.Range(.Cells(1, 1), .Cells(frmsimout.G1.Rows, frmsimout.G1.Cols))
        End With
        If err <> 0 Then
            Set xxxapp = CreateObject("Excel.Application")
            Set xxxobjex = CreateObject("Excel.sheet")
            xxxobjex.Application.Visible = True
            DoEvents
        With xxxobjex.ActiveSheet
        .Paste Destination:=.Range(.Cells(1, 1), .Cells(frmsimout.G1.Rows, frmsimout.G1.Cols))
        End With
            On Error GoTo 0
        End If
    "I don't think outside the box; I think of what I can do with the box." - Henri Matisse

  7. #7


    Did you find this post helpful? Yes | No
    Ah thanks a lot.

Similar Threads

  1. kc: Simulation programming problem
    By kc in forum Computing for Counters
    Replies: 2
    Last Post: 02-13-2007, 06:14 PM
  2. ES: Which programming language do you recommend
    By ES in forum Computing for Counters
    Replies: 7
    Last Post: 04-18-2005, 12:57 PM
  3. Gamesplayer: Help with programming in Ada
    By Gamesplayer in forum Computing for Counters
    Replies: 1
    Last Post: 11-14-2002, 05:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About Blackjack: The Forum

BJTF is an advantage player site based on the principles of comity. That is, civil and considerate behavior for the mutual benefit of all involved. The goal of advantage play is the legal extraction of funds from gaming establishments by gaining a mathematic advantage and developing the skills required to use that advantage. To maximize our success, it is important to understand that we are all on the same side. Personal conflicts simply get in the way of our goals.