Member-only story
The EASIEST Way To Scrape Pinnacle Odds
2 min readApr 29, 2022
Following on from the Bet365 article this time its the turn of the so called sharpest sportsbook in the world Pinnacle.
Lets get into it.
Lets import some libraries.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import pandas as pd
import pandas as pd
import statsmodels
import numpy as np
import datetime
import time
from pandas_datareader import data as pdr
from statsmodels.tsa.stattools import adfuller
import pandas as pd
import numpy as np
%matplotlib inline
import statistics
import requests #The requests library for HTTP requests in Python
import xlsxwriter #The XlsxWriter libarary for
import math #The Python math module
from scipy import stats #The SciPy stats module
from selenium.webdriver.support.ui import Select
Next lets initialize our selenium chrome wedriver
driver = webdriver.Chrome('D:/Downloads/chromedriver_win32/chromedriver.exe')
driver.get('https://www.pinnacle.com/en/soccer/italy-serie-a/matchups#period:0')
We are going to scarping match odds from Serie A Football Matches.
We will then scrape teams and odds to make sure we have found the correct classes
teams = driver.find_elements_by_class_name("style_participant__H8-ku")
for i in teams:
print(i.text)odds = driver.find_elements_by_class_name("style_price__15SlF")
for i in odds:
print(i.text)