Scrape Soccer Betting Odds from bet365 using Google Chrome

Sports betting odds provide insights which you can incorporate and apply in your strategies to predict match results. It can also help you make data-driven decisions regarding where to put your money while betting, find the potential value in the sports market and fantasy sports leagues.

You can even go further and create a betting odds database and come up with your own predictive models through data analysis and machine learning.

Using Web Scraper Chrome Extension, this tutorial will show you how to extract soccer betting odds from bet365. This scraper will extract odds of a draw, home and away win for a soccer league from any country in this URL

What data are we extracting?

  1. Match Time
  2. Home Team
  3. Away Team
  4. Home Odds
  5. Draw Odds
  6. Away Odds

bet365-data-fields

Prerequisites

  • Google Chrome Browser – You will need to download the Chrome browser. The extension requires Chrome 49+.
  • Web Scraper Chrome Extension – The Web Scraper extension can be downloaded from the Chrome Web Store.  After downloading the extension you will see a spider icon in your browser toolbar.

If you don’t like or want to code, the ScrapeHero Cloud is just right for you!

Skip the hassle of installing software, programming and maintaining the code. Run this scraper in the ScrapeHero Cloud within seconds

Run this in the Cloud for FREE
Deploy to ScrapeHero Cloud

Obtaining the URL

Here are the steps to select the country and league –

  1. Select the country (England) from this link.
  2. Click on your preferred league (Premier League).
  3. You will see an overview of all the teams. Click on the tab ‘Fixtures’ to view the odds data.

The scraper works for all countries in the link provided and their respective leagues.

For detailed steps on how to obtain the URL and use the webscraper.io extension, you can watch the video below or continue reading –

Import the Bet365 Scraper

Using the Web Scraper extension, you can create a sitemap that shows how the website should be traversed and what data should be extractedThe setup process is fairly simple, you can follow some of our other Web Scraper Extension tutorials or Documentation if you need to know more.

We have already made a scraper you can copy paste into the extension.

Import Scraper

After you have installed the extension right-click anywhere on a page, go to ‘Inspect’ and the Developer Tools console will pop up. Click on the tab ‘Web Scraper’ and go on to the ‘Create new sitemap’ button and click on the ‘Import sitemap’ option. Now paste the JSON below into the Sitemap JSON box.

Copy the JSON above and import into Web Scraper Extension. You can also copy it from Github – https://gist.github.com/scrapehero/29406e6123507d06b06a0dbd572f2675

Run the Scraper

To start scraping, go to the Sitemap and click ‘Scrape’ from the drop down. A new instance of Chrome will launch, enabling the extension to scroll and grab the data. Once the scrape is complete, the browser will close automatically and send a notification.

Download the Data

To download the scraped data as a CSV file that you can open in Microsoft Excel or Google Sheets, go to the Sitemap drop down > Export as CSV > Download Now.

Other sports

We have provided the tutorial for scraping data from soccer above. If you would like us to provide a tutorial for a sport you follow, please write a comment below.

We can help with your data or automation needs

Turn the Internet into meaningful, structured and usable data


Please DO NOT contact us for any help with our Tutorials and Code using this form or by calling us, instead please add a comment to the bottom of the tutorial page for help

Disclaimer: Any code provided in our tutorials is for illustration and learning purposes only. We are not responsible for how it is used and assume no liability for any detrimental usage of the source code. The mere presence of this code on our site does not imply that we encourage scraping or scrape the websites referenced in the code and accompanying tutorial. The tutorials only help illustrate the technique of programming web scrapers for popular internet websites. We are not obligated to provide any support for the code, however, if you add your questions in the comments section, we may periodically address them.

Responses

Louis Drapeau May 9, 2019

Hi, I have not looked too much into the code, I was wondering how complicated it would be to extract all pre-game odds on ATP and WTA simple tennis matches for the very specific category “./Player/Player To Win A Set”. If you could just give me little pointer where to start and I shoud figure it out. Thanks, Louis

Reply

Comments or Questions?

Turn the Internet into meaningful, structured and usable data   

Enjoying our Tutorials?

Subscribe to our weekly updates on the latest tutorials in Web Scraping and Data Extraction