Skip to content

Commit

Permalink
Empty scraper before each run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jan 5, 2017
1 parent 3e064dc commit 2412964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Expand Up @@ -13,6 +13,7 @@
file = 'https://raw.githubusercontent.com/teampopong/data-assembly/master/assembly.csv'
raw = open(file).read

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
csv = CSV.parse(raw, headers: true, header_converters: :symbol)
csv.each do |row|
data = {
Expand Down

0 comments on commit 2412964

Please sign in to comment.