Member-only story
Creating an Arbitrage Alert System from scratch using Python and Supabase Day 9— Checking Team Data
3 min readFeb 23, 2024
Hey Guys, First off apologies for the break in articles over the past week, I was super busy with work. Hopefully I will be releasing a few more articles this weekend so look forward to them!
Today we are doing some data cleaning, focusing on our team ids. We will run the scraper from the last article and then call our database to check if the data is accurate.
To begin run the flashscore scraper as shown below. Beware this will take awhile to run, so be prepared!
leagues_links = ["https://www.flashscore.com/football/england/premier-league/fixtures/","https://www.flashscore.com/football/england/championship/fixtures/",
"https://www.flashscore.com/football/england/league-one/fixtures/","https://www.flashscore.com/football/england/league-two/fixtures/"
,"https://www.flashscore.com/football/england/national-league/fixtures/","https://www.flashscore.com/football/australia/a-league/fixtures/"
,"https://www.flashscore.com/football/denmark/superliga/fixtures/","https://www.flashscore.com/football/france/ligue-1/fixtures/",
"https://www.flashscore.com/football/france/ligue-2/fixtures/","https://www.flashscore.com/football/germany/bundesliga/fixtures/",
"https://www.flashscore.com/football/germany/2-bundesliga/fixtures/","https://www.flashscore.com/football/italy/serie-a/fixtures/"…