Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Automatic update to make ScraperWiki scraper work on Morph
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jan 20, 2014
1 parent ac497e1 commit 78833f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
@@ -1,3 +1,4 @@
require 'scraperwiki'
require 'rubygems'
require 'mechanize'
require 'date'
Expand All @@ -20,7 +21,7 @@
'date_scraped' => Date.today.to_s
}

if ScraperWiki.select("* from swdata where `council_reference`='#{record['council_reference']}'").empty?
if ScraperWiki.select("* from data where `council_reference`='#{record['council_reference']}'").empty?
ScraperWiki.save_sqlite(['council_reference'], record)
else
puts "Skipping already saved record " + record['council_reference']
Expand Down

0 comments on commit 78833f5

Please sign in to comment.