Member-only story

Create Your Own Positive Expected Value Odds Scraper using Python — Part 4 PaddyPower Scraper

The Scraper Guy
3 min readSep 23, 2024

--

Another scraper today!

Introduction

We have created a PaddyPower scraper before but today we will extend the implementation to go through all games and scrape the selections and odds without any intervention.

The flow works as follows open the driver on the premier league competition in PaddyPower then get all the games elements and in for loop click on the first game, navigate to the shots tab. Open the Multiple shots section and click show more on the Multiple shots and 1 shot on target tab.

Once the odds and selections are scraped we return to the premier league competition page and click on the next game and repeat the process for all available games.

Code Walkthrough

Import libraries and create driver function, as well as a function to accept cookies

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…

--

--

The Scraper Guy
The Scraper Guy

Written by The Scraper Guy

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

No responses yet