Browse Source

Bump gem ref and update changed exception name

master
Adrian Short 6 years ago
parent
commit
04750474cb
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      Gemfile
  2. +2
    -2
      Gemfile.lock
  3. +1
    -1
      scraper.rb

+ 1
- 1
Gemfile View File

@@ -2,5 +2,5 @@ source "https://rubygems.org"

ruby '2.3.1'

gem 'uk_planning_scraper', :git => 'https://github.com/adrianshort/uk_planning_scraper/', :ref => '8d15678'
gem 'uk_planning_scraper', :git => 'https://github.com/adrianshort/uk_planning_scraper/', :ref => '7349fd6'
gem 'scraperwiki', :git => 'https://github.com/openaustralia/scraperwiki-ruby/', :branch => 'morph_defaults'

+ 2
- 2
Gemfile.lock View File

@@ -1,7 +1,7 @@
GIT
remote: https://github.com/adrianshort/uk_planning_scraper/
revision: 8d15678700bbe4286d956b71759bac0f3a2c78f0
ref: 8d15678
revision: 7349fd6470326964451f0405ffc92fc1c955e82a
ref: 7349fd6
specs:
uk_planning_scraper (0.2.0)
http


+ 1
- 1
scraper.rb View File

@@ -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

Loading…
Cancel
Save