Skip to content
Permalink
Browse files

Empty scraper before each run

  • Loading branch information...
tmtmtmtm committed Jan 5, 2017
1 parent 3e064dc commit 241296405aa5d83e608c47ec49005659ffa01937
Showing with 1 addition and 0 deletions.
  1. +1 −0 scraper.rb
@@ -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 = {

0 comments on commit 2412964

Please sign in to comment.
You can’t perform that action at this time.