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 12, 2019
1 parent 3f6f252 commit 1573487
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scraper.py
Expand Up @@ -36,10 +36,14 @@ def scrape_data():
h2 = soup.find("h2")
e_name.append(h2.text.strip())

rows = soup.find_all('table', {"class": "b-fight-details__table b-fight-details__table_style_margin-top b-fight-details__table_type_event-details js-fight-table"})
rows = []


rows = 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"})

for row in rows:

data = requests.get()rows
soup = BeautifulSoup(data.text, 'html.parser')

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

Expand Down

0 comments on commit 1573487

Please sign in to comment.