Python scraper of data - help with Beautifulsoup parse
Budget: $10 – $12 USD
I have code that scrapes data from a page Bet 365. I have managed to collect data from live matches but I am not able to figure out how to collect data from pre-match odds.
This is working for live odds but the pre-odds are looking a bit different.
soup = BeautifulSoup(driver.page_source, 'html.parser')
print('Parsed')
players = soup.find_all('div', class_='ovm-FixtureDetailsWithIndicators_Team')
odds = soup.find_all('span', class_='ovm-ParticipantOddsOnly_Odds')
data = {}
for i in range(len(odds)):
data[players[i].get_text()] = odds[i].get_text()
So it is not a big coding project. Just a small fix.
I will not share more information from the project than this.
This is working for live odds but the pre-odds are looking a bit different.
soup = BeautifulSoup(driver.page_source, 'html.parser')
print('Parsed')
players = soup.find_all('div', class_='ovm-FixtureDetailsWithIndicators_Team')
odds = soup.find_all('span', class_='ovm-ParticipantOddsOnly_Odds')
data = {}
for i in range(len(odds)):
data[players[i].get_text()] = odds[i].get_text()
So it is not a big coding project. Just a small fix.
I will not share more information from the project than this.