Finding out if a goal has been scored

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 99ticks
    Junior Member
    • Oct 2015
    • 3

    #1

    Finding out if a goal has been scored

    I'm just getting into writing betfair bots , I've written one already and plan on writing a second one which requires me to know if a goal has been scored. So I'm looking for advice on what's the best way to get this information programatically using a proper reliable API. As far as I can see the betfair API-NG doesn't supply such a service.

    Maybe a 'cheap' way of doing it would be to poll the >0.5 goals market and wait until it closes, has anyone tried this?

    Appreciate any comments or feedback,

    99ticks
  • Mr Magoo
    Junior Member
    • Jan 2011
    • 86

    #2
    It's probably faster to monitor the correct score markets, as the prices there will change quicker than waiting for a market to be settled.

    There are several live score websites that you could screen-scrape. Betfair have their own goals/cards feed for many matches, you could look at downloading that perhaps?

    Comment

    • 99ticks
      Junior Member
      • Oct 2015
      • 3

      #3
      Thanks for the reply, I'd rather not use html scraping as this is slow and can be unreliable.

      Comment

      • bnl
        Junior Member
        • Nov 2012
        • 108

        #4
        running on Linux, I've had parsing success with something like
        Code:
        lynx -dump -nolist -nostatus -print http://www.bbc.com/sport/football/results
        or some other url

        It does not make you parse html, but you do need to parse output like

        Code:
        Chasetown 1-1 Stalybridge Celtic
           Full time
           (BUTTON) Show
        
           Chesham United 2-0 North Leigh
           Full time
           (BUTTON) Show
        
           Didcot Town 4-1 Eastbourne Town
           Full time
           (BUTTON) Show
        
           Droylsden 3-4 Gainsborough Trinity
           Full time
           (BUTTON) Show
        
           East Thurrock United 3-6 Staines Town
           Full time
           (BUTTON) Show
        
           Eastbourne Borough 3-2 Hartley Wintney
           Full time
           (BUTTON) Show
        however, I gave it up, since I found it too difficult to map the game back to Betfair games.

        Sometimes a team like Manchester United was listed as

        Manchester United
        M.U.
        Manchester U
        Manchester Utd
        Man Utd
        Man U

        so I ended up with a table and a team's known aliases.
        But I was watching too many countries,
        and too many divisions so it just was too difficult to maintain

        /Björn

        Comment

        • zoltanthemage
          Junior Member
          • May 2015
          • 17

          #5
          If you scrape Betfair's HTML/feed, at least you don't have matching issues.

          Comment

          • bnl
            Junior Member
            • Nov 2012
            • 108

            #6
            Is that a special html feed ?
            Or is it Betfairs frontpage you refer to?

            /Björn

            Comment

            • StefanBelo.
              Junior Member
              • Jan 2009
              • 105

              #7
              It is betfair feed.

              http://bfexplorer.net/Products/Featu...ll Live Scores
              betfair bot platform, bfexplorer bot sdk

              Comment

              • bnl
                Junior Member
                • Nov 2012
                • 108

                #8
                Looks really nice.
                However, my bot(system) is unattended, and I like to keep it like that. (no GUI = I cannot make mistakes in the heat of the moment ...)

                The feed itself, is it Betfair, or is it you
                polling and parsing Betfair?

                If it is a Betfair feed, I really would like
                an URL

                /Björn

                Comment

                Working...
                X