Member-only story
Create Your Own Positive Expected Value Odds Scraper using Python — Part 10— Posting to DB Tables
9 min readSep 30, 2024
Extending our scrapers to post the data to our new db tables
Yesterdays story
Code Walkthrough
Be sure to replace your Supabase projects url and key here
API_URL = 'SUPABASE PROJECT URL'
API_KEY = 'SUPABASE PROJECT KEY'
supabase = create_client(API_URL, API_KEY)
supabase
Bet365 Scraper Updated
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…