Replies: 2 comments 1 reply
-
|
Hi Andy, def get_ratings(): odds.scrape(odds_date = '')`import os from selenium.webdriver.support.ui import WebDriverWait def scrape(odds_date): url = 'https://www.racingtv.com/racecards/runners'url = 'https://www.racingtv.com/racecards/runners/tomorrow'driver.implicitly_wait(500)def select_y(): def scrape1(): url = 'https://www.racingtv.com/racecards/runners'driver = webdriver.Edge(options=edge_options)driver.quit()csv_file_path = r'C:\Users\chris\Documents\UKHR\Python\Racecards\RacecardOdds.csv'odds_element = div.find('div', class_='css-1rynq56', style='font-family: TitilliumWeb_600SemiBold; color: rgb(29, 28, 57); font-size: 16px;')def main(): add_prize_totals()if name == 'main': |
Beta Was this translation helpful? Give feedback.
-
|
PS. you have to wait for the RTV page to load and then enter "Y" to proceed. I couldn't work out how to use python to test when the page loaded so I had to do it manually. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @Caprice63, I too have been learning Python and am still very much a novice. I found your fork of rpscrape very useful, particularly as it pulled in the odds from RTV... For some reason that has stopped working and I can't figure out why, do you know what is causing the error?
Thanks
Andy
Beta Was this translation helpful? Give feedback.
All reactions