Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
majupi committed Jan 25, 2018
1 parent a00f505 commit dd98325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -19,8 +19,9 @@
print i.attrib['href']
print i.text.encode("ascii", "ignore")
record['link'] = i.attrib['href']
record['name'] = i.text.encode("ascii", "ignore")
print record
scraperwiki.sqlite.save(unique_keys=['link'], data=record) # this saves the data in a way you can download it.
scraperwiki.sqlite.save(unique_keys=['link','name'], data=record) # this saves the data in a way you can download it.



Expand Down

0 comments on commit dd98325

Please sign in to comment.