Easiest Way To Scrape Premier League Football Odds from Stake Using Python and Selenium — Updated
3 min readSep 18, 2024
Get a script up and running in 5 minutes!
Introduction
Today we will be updating a tutorial I made a little while ago, where we scraped Premier League odds from Stake.com a very popular crypto based Casino/Sports Betting platform.
Code Walkthrough
Import libraries and setup the driver
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 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
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from webdriver_manager.chrome import ChromeDriverManager
import time
from…