Skip to content
Browse files

Merge pull request #1 from everypolitician-scrapers/drop-table-before…


Remove table from database before scraping
  • Loading branch information...
tmtmtmtm committed May 12, 2017
2 parents 4a10d78 + a2d9f8c commit 90c522382ebf3b165c8d2518aeeecd72a4c6289b
Showing with 1 addition and 1 deletion.
  1. +1 −1 scraper.rb
@@ -8,7 +8,7 @@

require_relative 'lib/politician'

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
house ='Finland').lower_house do |wanted|
data = Wikisnakker::Politician.find(wanted).flat_map(&:positions).compact

0 comments on commit 90c5223

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