Member-only story

Create Your Own Positive Expected Value Odds Scraper using Python — Part 3 Bet365 Scraper

The Scraper Guy
4 min readSep 22, 2024

--

Bet365 Scraper!

Introduction

Today we will continue our series to create an Expected Value Odds Scraper. We will go through our Bet365 scraper. This scraper is still a work in progress and we will have to extend it to post the odds to our database, but for now it will suffice.

Code Walkthrough

The basic logic here is we will open a driver on Bet365s homepage then click on English Premier League and navigate to the Shots On Target tab that has all of the available games.

One thing that has to be considered here is that Shots On Target markets do not open usually until a few days before the games. So going forward we have to consider what days our scraper will run.

But now back to the code. Lets import our libraries

import json
import pandas as pd
from datetime import date
import statsmodels
import numpy as np
import datetime
from datetime import datetime
import time
import pandas as pd
import numpy as np
import math #The Python math module
from scipy import stats #The SciPy stats module
import time
from selenium import webdriver
from selenium.webdriver import ChromeOptions
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities…

--

--

The Scraper Guy
The Scraper Guy

Written by The Scraper Guy

Teaching You How to Scrape Using Python LinkTree - https://linktr.ee/scrapingguy

Responses (1)