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 6894f3c commit c080ced
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.py
Expand Up @@ -32,8 +32,7 @@ def scrape_data():
h2 = soup.find("h2")
e_name.append(h2.text.strip())

fights_table = soup.find('table').find('tbody').find('tr').find_next('tr')

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', 'class':{"b-fight-details__table-body"}).find('tr').find_next('tr')
fighters = fights_table.find_all('a', {"href": re.compile("http://ufcstats.com/fighter-details")})

try:
Expand Down

0 comments on commit c080ced

Please sign in to comment.