Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zegor committed Jul 14, 2018
1 parent 227a47c commit 41e9e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -44,8 +44,8 @@
player_name_text = player_row_text.split(". ",1)[1].split(", ",1)[0]

for links in player_row_link:
for link in links:
print(link[2])
for link in links[2]:
print(link)

# Write out to the sqlite database using scraperwiki library
scraperwiki.sqlite.save(unique_keys=["Player ID"], data={"Player ID":player_id, "Category":category_name_text, "Player Rank":player_rank_text, "Player Name":player_name_text}, table_name="data")
Expand Down

0 comments on commit 41e9e49

Please sign in to comment.