A quick and easy scraper to extract betting odds from Bet365
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.com, is a betting aggregator website which allows you to compare odds from multiple betting websites for a variety of sports. Gathering this data 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.
Using Web Scraper Chrome Extension, this tutorial will show you how to extract betting odds for any soccer league in the world from OddsPortal.com. This 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.
What data are we extracting?
- Home Odds
- Draw Odds
- Away Odds
- 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, 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
Obtaining the URL
Here are steps to choose the sports and league you would like to scrape:
- Select the sport (Soccer). A list of countries will drop down.
- Click on the country (England) and the league (Premier League) you want.
- A new tab will open with the list of matches along with their corresponding bookmakers and odds.
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/0b6e9ea30c06ae3e8b35a9e48bff98c8
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.
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
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.