Member-only story
Create Your Own Positive Expected Value Odds Scraper using Python — Part 8 — Bet365 Scraper Updated
Those pesky developers over at Bet365 have updated the Player Shots On Target Page
Introduction
Bet365 have introduced a new Player Shots On Target design, which means we need to update our scraper!
The new page looks like this
It is a much better layout as it shows all available shots markets! But it means we need to update our scraper.
The new scraper works quite a bit differently. We first open our scraper directly to this page. Bet365 will not show anything when we first open this page. So we open a new tab on the same page.
We then open the closed matches. Initiate a number of lists to hold our odds and populate the lists with a new method.
Code Walkthrough
Libraries and driver code
from supabase import create_client
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…