diff --git a/scraper.py b/scraper.py index 87395e1..c9821c5 100644 --- a/scraper.py +++ b/scraper.py @@ -32,9 +32,7 @@ def scrape_data(): h2 = soup.find("h2") e_name.append(h2.text.strip()) - fights_table = soup.find('table', { - "class": "b-fight-details__table b-fight-details__table_style_margin-top b-fight-details__table_type_event-details js-fight-table"}).find( - "tbody").find_all("tr") + fights_table = soup.find("table").find("tbody").find_all("tr") fighters = fights_table.find_all('a', {"href": re.compile("http://ufcstats.com/fighter-details")})