Comments (4)
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.
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.
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.
Duplicate of #11
from soccerapi.
Related Issues (20)
- Data missplaced on bet365 API HOT 1
- More detailed odds? HOT 1
- Parsing "in-play" bet365
- Assertion error when odds are not available HOT 1
- Bet365 X-Net-Sync-Term header HOT 52
- Bet365 is blocking Puppeteer access HOT 6
- Cannot Parse BET365 and UniBet HOT 1
- Doubt HOT 1
- Kambi Varnish Service Blocking IP Addresses HOT 1
- Under/Over odds in Bet365
- Problem with competition on Bet365 HOT 1
- what bet365 link that I can put in this api. HOT 1
- Problem scraping Bet365 with headless mode HOT 8
- Maximum requests limit
- Cloudfare captcha HOT 3
- Problems scraping bet365 HOT 3
- kambi odds HOT 1
- No Python at 'C:\Users\user\AppData\Local\Programs\Python\Python38-32\python.exe'
- The odds are not completly correct
- Error when scraping Bet365
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soccerapi.