Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifGreiss committed Dec 1, 2017
1 parent 1d8dc3b commit 928d6aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scraper.py
Expand Up @@ -12,3 +12,8 @@
for td in tds:
record = { "td" : td.text } # column name and value
scraperwiki.sqlite.save(["td"], record) # save the records one by one
try:
scraperwiki.sqlite.save(["td"], record)
except:
record = {"td" : "NO ENTRY"}
scraperwiki.sqlite.save(["td"], record)

0 comments on commit 928d6aa

Please sign in to comment.