Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmaloney committed Aug 11, 2019
1 parent 368459b commit 3fe6669
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scraper.py
Expand Up @@ -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")})

Expand Down

0 comments on commit 3fe6669

Please sign in to comment.