Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikeikaas committed Oct 25, 2018
1 parent 89f0dee commit cac77f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.py
Expand Up @@ -58,6 +58,7 @@ def get_cell_value(element, css):
result_cells = result_table.cssselect("tr")
for result_cell in result_cells:
athlete = result_cell.cssselect("td")[1]
print get_cell_value(athlete)
athlete_url = athlete.cssselect("a")[0].get("href")
parsed = urlparse.urlparse(athlete_url)
athlete_id = urlparse.parse_qs(parsed.query)['competitorid']
Expand Down

0 comments on commit cac77f7

Please sign in to comment.