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 ccfdef8 commit 20f4282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -57,7 +57,7 @@ def get_cell_value(element, css):
result_table = root.cssselect("table.footable")[0]
result_cells = result_table.cssselect("tr")
for result_cell in result_cells:
athlete_url = result_cell.cssselect("td")[2].csselect("a")[0].get("href")
athlete_url = result_cell.cssselect("td")[2].cssselect("a")[0].get("href")
parsed = urlparse.urlparse(athlete_url)
athlete_id = urlparse.parse_qs(parsed.query)['competitorid']
result = {
Expand Down

0 comments on commit 20f4282

Please sign in to comment.