I'm attempting to scrape the data from the PR College table on https://gbr.milesplit.com/athletes/pro/5424599/stats The Code looks like
prTable = wait.until(EC.presence_of_element_located((By.XPATH, '/html/body/div[5]/div/aside/div[4]/table')))
Sometimes the response I get is correct, it's a string containing the Personal Records. Other times it just grabs random info off the webpage, and occasionally it fails to find the element. I'm pretty confused as to why it works sometimes, but not all the time. Is there a better way than xpath, or am I using the wrong tag?