Giter Site home page Giter Site logo

Odds delay about soccerapi HOT 4 CLOSED

s1m0n38 avatar s1m0n38 commented on May 24, 2024
Odds delay

from soccerapi.

Comments (4)

camwardy avatar camwardy commented on May 24, 2024

I'm also getting the following error when using the bet365api, the 888sport and unibet apis work perfectly:

File "C:\Users\Admin\Documents\Code\soccerapi-master\soccerapi\api\bet365\bet365.py", line 76, in _parse_odds
key = self._guess_xor_key(values[0])
IndexError: list index out of range

values is returning an empty list as 'OD' cannot be found in the data variable.

from soccerapi.

S1M0N38 avatar S1M0N38 commented on May 24, 2024

Regarding the delay of the odds I have no clue: they should be the latest odds available. However the odds are different (and sometime by quite a margin) if bet365.com is access from different country.

The second issue that you are experiencing it's related to the way that data coming from bet356 are parsed. At every requests the api naively brute force the char that is used in the xor data obfuscation and then reverse the obfuscation. Probably they change something in the obfuscation procedure and now the whole method fail.

I'm currently not maintain this project but there is a repo that is parsing bet365 data: take a look, could be a useful resource to fix this problem.

from soccerapi.

camwardy avatar camwardy commented on May 24, 2024

Hi, thanks for the reply. I looked at the repo you linked and it looks like bet365 have changed the way they cipher their xor data, making it increasingly harder for applications like this to access their odds data.

from soccerapi.

S1M0N38 avatar S1M0N38 commented on May 24, 2024

Duplicate of #11

from soccerapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.