Python Forum
Webscrapping sport betting websites
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webscrapping sport betting websites
#1
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 :
for game in all_games:
    url = game[url]
    request(url)
    //get all odds
Doing 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 Smile

Thanks in advance for your help.
Reply


Messages In This Thread
Webscrapping sport betting websites - by KoinKoin - Mar-19-2022, 10:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  webscrapping links from pandas dataframe Wolverin 2 2,327 Aug-28-2023, 12:07 PM
Last Post: Gaurav_Kumar
  Python project - sport results Qn91 3 1,833 Oct-10-2022, 08:48 AM
Last Post: Larz60+
  Extract data from sports betting sites nestor 3 5,707 Mar-30-2021, 04:37 PM
Last Post: Larz60+
  Web Scraping Sportsbook Websites Khuber79 17 322,895 Mar-17-2021, 12:06 AM
Last Post: Whitesox1
  Scrapping Sport score laplacea 1 2,301 Dec-13-2020, 04:09 PM
Last Post: Larz60+
Thumbs Up Issue facing while scraping the data from different websites in single script. Balamani 1 2,156 Oct-20-2020, 09:56 AM
Last Post: Larz60+
  Can urlopen be blocked by websites? peterjv26 2 3,440 Jul-26-2020, 06:45 PM
Last Post: peterjv26
  Python program to write into websites for you pythonDEV333 3 2,576 Jun-08-2020, 12:06 PM
Last Post: pythonDEV333
  Webscrapping of Images that requires Authentication junos4350 1 2,013 Jun-08-2020, 08:32 AM
Last Post: alekson
  Scraping Websites to post on Telegram kobryan 1 2,693 Oct-19-2019, 07:03 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020