Scrape Soccer Betting odds from any League in OddsPortal Using Chrome

Sports betting websites analyze a lot of historical data from previous games and monitor the overall performance of the teams to provide better odds. The betting industry is a multi-billion dollar business and is growing at a rapid pace. OddsPortal, a betting aggregator website which allows you to compare odds from multiple betting websites for a variety of sports. Using ScrapeHero Cloud, this tutorial will show you how to scrape soccer betting odds for any soccer league in the world from OddsPortal.com.

Web scraping betting websites will allow you to monitor odds offered by different websites and help make a more accurate decision for regular as well as peer-to-peer betting which is gaining popularity and is expected to be the future of gambling. This Oddsportal scraper will extract the match name, date and time, top bookmakers and the odds of a draw, home and away win for all matches in a particular league.

Here are the steps to scrape soccer betting odds OddsPortal:

  1. Create a ScrapeHero Cloud account and select the OddsPortal Crawler.
  2. Input the OddsPortal URLs.
  3. Run the scraper and download the data (CSV, JSON, XML)

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

Skip the hassle of installing software, programming and maintaining the code. Download this data using ScrapeHero cloud within seconds.

Get Started for Free
Deploy to ScrapeHero Cloud

What data are we extracting?

For this tutorial we will only extract the following fields from OddsPortal:

  1. Match
  2. Payout
  3. Date
  4. Bookmakers
  5. Time
  6. Home odds
  7. Draw odds
  8. Away odds

data-fields-to-extract-oddportal

Step 1: Create an account

First, we will create an account in ScrapeHero Marketplace. To sign up go to the link – https://cloud.scrapehero.com/accounts/login/ and create an account with your email address.

Step 2: Input the Details for the Oddportal Crawler

The only input needed for this crawler is the URL from the leagues available in OddsPortal. Here are steps to choose the sports and league you would like to scrape:

  1. Select the sport (Soccer). A list of countries will dropdown.
  2. Click on the country (England) and the league (Premier League) you want.
  3. A new tab will open with the list of matches along with their corresponding bookmakers and odds.

Ex: https://www.oddsportal.com/soccer/england/premier-league/watford-west-ham-0KCR68FT/

Copy this URL and paste it into the field for Start URLs. If you need to scrape more than one URL, you can add each new one separated by a new line. Then click on ‘Continue’.

Step 3: Run the Scraper

The Oddportal crawler page will open up and you will see the option to ‘Gather Data’. Once you have clicked it the scraper will start to run

After the scrape is complete the ‘Status’ of the crawler will change from ‘Started’ to ‘Finished’. Click on ‘View Data’ to view the scraped data.

Step 4: Download the Data

You can see all the data scraped on this page. To download the scraped data click on ‘Download Data’.

A drop down to select a data format will appear. You can choose between CSV, JSON, and XML formats. After clicking on the data format option, a file will soon be downloaded with all the scraped OddPortal product data.

You can get data delivered to Dropbox if you integrate the crawler account to your Dropbox account. You also have the option to schedule the data if you want to extract product data on a timely basis.

You can get data delivered to Dropbox if you integrate the crawler account to your Dropbox account. You also have the option to schedule the data if you want to extract product data on a timely basis.

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

Skip the hassle of installing software, programming and maintaining the code. Download this data using ScrapeHero cloud within seconds.

Get Started for Free
Deploy to ScrapeHero Cloud

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

 

Posted in:   Web Scraping Tutorials

Responses

Emeka Egbuna May 10, 2019

Hi, Thanks for the product and tutorial. Very helpful. I have a question regarding the JSON. How do I modify the “”startUrl” line if I have multiple pages to scrape data from? For example the url below is for page 1 to 3.

https://www.oddsportal.com/soccer/england/premier-league/results/
https://www.oddsportal.com/soccer/england/premier-league/results/#/page/2/
https://www.oddsportal.com/soccer/england/premier-league/results/#/page/3/

Thanks once again and looking forward to your response.

Reply

    ScrapeHero May 11, 2019

    You should open the sitemap in Web Scraper Extension in developer toolbar. Then go to Sitemap , click on it to drop down a menu and click on Edit Metadata. You should see an input box which says Start URL, and – + buttons to its far right. Click on + to have another input box for the next start URL. Add as many URLs as you want.

    Alternatively take a look at ScrapeHero Cloud, if you need to do this automatically every day or so, and have the data uploaded to your dropbox.
    https://cloud.scrapehero.com/marketplace/bet365-betting-odds/

    Reply

Alejandro May 31, 2019

Hello. It was really useful. I’m cheking the code and I do not know if it is eay to scrap double chance odds ( DC ). By default, the program scraps only the main page in each match in 1X2 market. I am trying to do the same with DC market. Is it complicated for a noob or can I do this simply editing some code lines?

Thank you so much and I am looking forward your response.

Reply

Laurynas October 19, 2019

Hey, thank you for the tutorial and everything. I see that this JSON sitemap extracts bookmakers, odds, time, date and payouts. But how could I extend this sitemap to extract final result of the match? I really need this… Thank you for everything!

Reply

Tim Sheehan November 20, 2019

No need to scrape the payout… just sum the reciprocals of the 3 odds, then take the reciprocal of the result.

Reply

Daniel Stoica January 12, 2020

please help! how to scrape double chance and how to add HT / FT result!!!???
thanks, Daniel

Reply

NIKOS January 15, 2020

Hello guys. I have a question,if i want to scrape the details of all matches of a day without a league specific for example all the matches of 20/1/2020 and not a specific league what should i have to do with the JSON?

Reply

Damien Costa January 26, 2020

Hello,

Thank you very much for this example. But i would like to know how to scrap odds opening ?

Thank you for your answer 🙂

Reply

Manuel April 4, 2020

Hi,

I have already managed to obtain the data 1X2 (Full Time) in OddsPortal of several championships.
For that, I am very grateful for your work.
I would like to ask for help to obtain 1st Half data 1X2.
It will be possible?

Many Thanks in advance,
Manuel

Reply

Comments or Questions?

Turn the Internet into meaningful, structured and usable data   

ScrapeHero Logo

Can we help you get some data?