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 c9da7b8 commit 29d12dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -60,7 +60,8 @@ def get_cell_value(element, css):
if len(result_cell.cssselect("td")) > 1:
athlete = result_cell.cssselect("td")[1]
print athlete.text_content()
athlete_url = athlete.cssselect("a")[0].get("href")
athlete_url = athlete.cssselect("a")
print athlete_url
parsed = urlparse.urlparse(athlete_url)
athlete_id = urlparse.parse_qs(parsed.query)['competitorid']
result = {
Expand Down

0 comments on commit 29d12dc

Please sign in to comment.