planningalerts-scrapers / multiple_horizon

Scrapes multiple authorities with the horizon system


This is a scraper that runs on Morph. To get started see the documentation

Contributors mlandauer

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling...  -----> Ruby app detected -----> Compiling Ruby -----> Using Ruby version: ruby-2.5.1 -----> Installing dependencies using bundler version 1.15.2  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment  Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.  Fetching gem metadata from https://rubygems.org/.........  Fetching version metadata from https://rubygems.org/.  Fetching https://github.com/openaustralia/scraperwiki-ruby.git  Fetching https://github.com/planningalerts-scrapers/horizon_xml.git  Fetching concurrent-ruby 1.1.5  Fetching minitest 5.11.3  Fetching thread_safe 0.3.6  Installing minitest 5.11.3  Installing thread_safe 0.3.6  Installing concurrent-ruby 1.1.5  Fetching public_suffix 3.1.1  Installing public_suffix 3.1.1  Using bundler 1.15.2  Fetching connection_pool 2.2.2  Installing connection_pool 2.2.2  Fetching safe_yaml 1.0.5  Installing safe_yaml 1.0.5  Fetching unf_ext 0.0.7.6  Installing unf_ext 0.0.7.6 with native extensions  Fetching hashdiff 0.4.0  Installing hashdiff 0.4.0  Fetching mime-types-data 3.2019.0331  Fetching net-http-digest_auth 1.4.1  Installing net-http-digest_auth 1.4.1  Installing mime-types-data 3.2019.0331  Fetching mini_portile2 2.4.0  Installing mini_portile2 2.4.0  Fetching ntlm-http 0.1.1  Fetching webrobots 0.1.2  Installing ntlm-http 0.1.1  Fetching httpclient 2.8.3  Installing webrobots 0.1.2  Installing httpclient 2.8.3  Fetching sqlite3 1.4.1  Installing sqlite3 1.4.1 with native extensions  Fetching timecop 0.9.1  Installing timecop 0.9.1  Fetching vcr 5.0.0  Installing vcr 5.0.0  Fetching tzinfo 1.2.5  Installing tzinfo 1.2.5  Fetching addressable 2.6.0  Installing addressable 2.6.0  Fetching net-http-persistent 3.0.1  Installing net-http-persistent 3.0.1  Fetching crack 0.4.3  Installing crack 0.4.3  Fetching i18n 1.6.0  Installing i18n 1.6.0  Fetching nokogiri 1.10.3  Installing nokogiri 1.10.3 with native extensions  Fetching mime-types 3.2.2  Installing mime-types 3.2.2  Fetching webmock 3.6.0  Installing webmock 3.6.0  Fetching activesupport 5.2.3  Installing activesupport 5.2.3  Fetching unf 0.1.4  Installing unf 0.1.4  Fetching domain_name 0.5.20190701  Installing domain_name 0.5.20190701  Fetching http-cookie 1.0.3  Installing http-cookie 1.0.3  Fetching sqlite_magic 0.0.6  Installing sqlite_magic 0.0.6  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Fetching mechanize 2.7.6  Installing mechanize 2.7.6  Using horizon_xml 1.1.1 from https://github.com/planningalerts-scrapers/horizon_xml.git (at master@c0ccb8a)  Bundle complete! 5 Gemfile dependencies, 34 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Post-install message from i18n:  HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.  But that may break your application.  Please check your Rails app for 'config.i18n.fallbacks = true'.  If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be  'config.i18n.fallbacks = [I18n.default_locale]'.  If not, fallbacks will be broken in your app by I18n 1.1.x.  For more info see:  https://github.com/svenfuchs/i18n/releases/tag/v1.1.0  Post-install message from hashdiff:  The HashDiff constant used by this gem conflicts with another gem of a similar name. As of version 1.0 the HashDiff constant will be completely removed and replaced by Hashdiff. For more information see https://github.com/liufengyun/hashdiff/issues/45.  Bundle completed (26.50s)  Cleaning up the bundler cache.  Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. -----> Detecting rake tasks   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... The HashDiff constant used by this gem conflicts with another gem of a similar name. As of version 1.0 the HashDiff constant will be completely removed and replaced by Hashdiff. For more information see https://github.com/liufengyun/hashdiff/issues/45. Scraping authorities: cowra, liverpool_plains, uralla, walcha, weddin, maitland Collecting feed data for cowra... Collecting feed data for liverpool_plains... Collecting feed data for uralla... Collecting feed data for walcha... Collecting feed data for weddin... Collecting feed data for maitland... *************************************************** Now retrying authorities which earlier had failures *************************************************** Collecting feed data for maitland... maitland: ERROR: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (unable to get local issuer certificate) /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:981:in `connect' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:920:in `do_start' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:915:in `start' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:710:in `start' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:640:in `connection_for' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:945:in `request' /app/vendor/bundle/ruby/2.5.0/gems/mechanize-2.7.6/lib/mechanize/http/agent.rb:280:in `fetch' /app/vendor/bundle/ruby/2.5.0/gems/mechanize-2.7.6/lib/mechanize.rb:464:in `get' /app/vendor/bundle/ruby/2.5.0/bundler/gems/horizon_xml-c0ccb8ac9657/lib/horizon_xml.rb:140:in `scrape_url' /app/vendor/bundle/ruby/2.5.0/bundler/gems/horizon_xml-c0ccb8ac9657/lib/horizon_xml.rb:63:in `scrape' scraper.rb:10:in `block in scrape' scraper.rb:6:in `each' scraper.rb:6:in `scrape' scraper.rb:26:in `<main>' maitland: ERROR: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (unable to get local issuer certificate) /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:981:in `connect' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:920:in `do_start' /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:915:in `start' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:710:in `start' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:640:in `connection_for' /app/vendor/bundle/ruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb:945:in `request' /app/vendor/bundle/ruby/2.5.0/gems/mechanize-2.7.6/lib/mechanize/http/agent.rb:280:in `fetch' /app/vendor/bundle/ruby/2.5.0/gems/mechanize-2.7.6/lib/mechanize.rb:464:in `get' /app/vendor/bundle/ruby/2.5.0/bundler/gems/horizon_xml-c0ccb8ac9657/lib/horizon_xml.rb:140:in `scrape_url' /app/vendor/bundle/ruby/2.5.0/bundler/gems/horizon_xml-c0ccb8ac9657/lib/horizon_xml.rb:63:in `scrape' scraper.rb:10:in `block in scrape' scraper.rb:6:in `each' scraper.rb:6:in `scrape' scraper.rb:33:in `<main>' scraper.rb:37:in `<main>': There were errors with the following authorities: [:maitland]. See earlier output for details (RuntimeError)

Data

Downloaded 2470 times by openaustralia DevAppProject jesse-a-reilly mattykn vietbaracon

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (513 KB) Use the API

rows 10 / 1480

council_reference address description info_url date_scraped date_received authority_label
DA 2019/73.1
108 Darling Street COWRA 2794 NSW
New Building Residential Garage/Shed
2019-07-31
2019-07-30
cowra
CC 2019/42.1
1 Victor Street COWRA 2794 NSW
Dwelling additions
2019-07-31
2019-07-26
cowra
DA 2016/11.3
112E Airport Road COWRA 2794 NSW
New Building Assemble Bulding and New Building Factory, Workshop or La
2019-07-31
2019-07-25
cowra
DA 2019/72.1
Fishburn Street COWRA 2794 NSW
Subdivision
2019-07-31
2019-07-25
cowra
FS 2017/139.1
2 Mulyan Street COWRA 2794 NSW
Addition to existing car wash and 2 new shad structures
2019-07-31
2019-07-25
cowra
CC 2017/20.2
15 Parkes Street WOODSTOCK 2793 NSW
Modification - relocate caport
2019-07-31
2019-07-24
cowra
DA 2019/71.1
11 Waratah Street COWRA 2794 NSW
Extension to industrial shed
2019-07-31
2019-07-23
cowra
CC 2019/71.1
11 Waratah Street COWRA 2794 NSW
Extension to industrial shed
2019-07-31
2019-07-22
cowra
DA 2019/70.1
Carleton Street COWRA 2794 NSW
Demolition of an existing shed and construction of a new shed
2019-07-31
2019-07-22
cowra
CC 2019/70.1
Carleton Street COWRA 2794 NSW
Demolition of an existing shed and construction of a new shed
2019-07-31
2019-07-22
cowra

Statistics

Average successful run time: 2 minutes

Total run time: about 8 hours

Total cpu time used: 8 minutes

Total disk space used: 545 KB

History

  • Auto ran revision cd7ec55f and failed .
    nothing changed in the database
  • Auto ran revision cd7ec55f and failed .
    nothing changed in the database
  • Auto ran revision cd7ec55f and failed .
    nothing changed in the database
  • Auto ran revision cd7ec55f and failed .
    nothing changed in the database
  • Auto ran revision cd7ec55f and failed .
    68 records added, 61 records removed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

multiple_horizon / scraper.rb