|
|
@@ -10,7 +10,7 @@ auths.each_with_index do |auth, i| |
|
|
|
apps = auth.scrape({ validated_days: ENV['MORPH_DAYS'].to_i, keywords: 'inlink'}) |
|
|
|
ScraperWiki.save_sqlite([:authority_name, :council_reference], apps, 'applications') |
|
|
|
puts "#{auth.name}: #{apps.size} application(s) saved." |
|
|
|
rescue UKPlanningScraper::SystemNotSupportedError => e |
|
|
|
rescue UKPlanningScraper::SystemNotSupported => e |
|
|
|
puts "Error: #{e}" |
|
|
|
end |
|
|
|
end |