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 26, 2018
1 parent f2b3671 commit 3ca228d
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")[1]
result_cells = result_table.cssselect("tr")
for result_cell in result_cells:
if len(result_cell.cssselect("td")) > 2 && len(result_cell.cssselect("td")[0].text_content()) > 0:
if len(result_cell.cssselect("td")) > 2 and len(result_cell.cssselect("td")[0].text_content()) > 0:
athlete = result_cell.cssselect("td")[1]
athlete_url = athlete.cssselect("a")[0].get("href")
print athlete_url
Expand Down

0 comments on commit 3ca228d

Please sign in to comment.