Mar-19-2022, 10:07 AM
Hello everyone,
As part of my improvement in Python, I want to scrap some sport betting websites and try to compare the odds.
I have few websites on my mind and for 2 of them, I was able to find a websocket or a js to get the datas I wanted.
For others, there are no "easy" informations to get.
For example, let's take that website : https://www.betclic.com/en/sports-betting/football-s1
It's all the soccer games available on their website at the moment.
We have few informations available and we have "Match Results" odds and "Double Chance" odds.
And if we click on one game, we have more bets available.
My goal here is to get all the bets available per game, without the need to "enter" in every game.
I don't want to do something like that :
I would prefer to have "one" request with all odds.
I already seached if someone else had already done that, but I guess not.
The only thing I found was a xml file (http://xml.cdn.betclic.com/odds_en.xml) which look kinda of what I want, but heavy (10Mo, my internet speed can be slow sometimes) and the odds can be different between the xml file and the website.
I was wondering if there is an equivalent of the file but directly on the betclic's website.
Maybe there is nothing an I will scrap the XML file
Thanks in advance for your help.
As part of my improvement in Python, I want to scrap some sport betting websites and try to compare the odds.
I have few websites on my mind and for 2 of them, I was able to find a websocket or a js to get the datas I wanted.
For others, there are no "easy" informations to get.
For example, let's take that website : https://www.betclic.com/en/sports-betting/football-s1
It's all the soccer games available on their website at the moment.
We have few informations available and we have "Match Results" odds and "Double Chance" odds.
And if we click on one game, we have more bets available.
My goal here is to get all the bets available per game, without the need to "enter" in every game.
I don't want to do something like that :
for game in all_games: url = game[url] request(url) //get all oddsDoing that means doing 500 requests, which I would like to avoid.
I would prefer to have "one" request with all odds.
I already seached if someone else had already done that, but I guess not.
The only thing I found was a xml file (http://xml.cdn.betclic.com/odds_en.xml) which look kinda of what I want, but heavy (10Mo, my internet speed can be slow sometimes) and the odds can be different between the xml file and the website.
I was wondering if there is an equivalent of the file but directly on the betclic's website.
Maybe there is nothing an I will scrap the XML file

Thanks in advance for your help.