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 2818cec commit 48f51ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -37,10 +37,10 @@ def scrape_data():

rows = fights_table.find_all('tr', {"class": "b-fight-details__table-row b-fight-details__table-row__hover js-fight-details-click"

for rows in row:
for row in rows:


fighters = rows.find_all('a', {"href": re.compile("http://ufcstats.com/fighter-details")})
fighters = row.find_all('a', {"href": re.compile("http://ufcstats.com/fighter-details")})

try:
f1.append(fighters[0].text.strip())
Expand Down

0 comments on commit 48f51ca

Please sign in to comment.