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  Fetching unf_ext 0.0.7.6  Installing safe_yaml 1.0.5  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  Installing mime-types-data 3.2019.0331  Fetching net-http-digest_auth 1.4.1  Installing net-http-digest_auth 1.4.1  Fetching mini_portile2 2.4.0  Fetching ntlm-http 0.1.1  Installing ntlm-http 0.1.1  Installing mini_portile2 2.4.0  Fetching webrobots 0.1.2  Installing webrobots 0.1.2  Fetching httpclient 2.8.3  Fetching sqlite3 1.4.1  Installing sqlite3 1.4.1 with native extensions  Installing httpclient 2.8.3  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 net-http-persistent 3.0.1  Installing net-http-persistent 3.0.1  Fetching addressable 2.6.0  Installing addressable 2.6.0  Fetching crack 0.4.3  Installing crack 0.4.3  Fetching i18n 1.6.0  Installing i18n 1.6.0  Fetching mime-types 3.2.2  Installing mime-types 3.2.2  Fetching nokogiri 1.10.3  Installing nokogiri 1.10.3 with native extensions  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 (28.66s)  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... Saving record DA 2020/23.1, 1 Holman Place COWRA 2794 NSW Saving record CC 2019/128.1, Binni Creek Road COWRA 2794 NSW Saving record DA 2019/98.2, 3-5 Grenfell Road COWRA 2794 NSW Saving record OC 2019/132.1, 35 London Drive COWRA 2794 NSW Saving record DA 2020/22.1, 82 Lyall Street COWRA 2794 NSW Saving record CC 2019/118.1, 103 Reg Hailstone Way WOODSTOCK 2793 NSW Saving record OC 2016/33.2, 18-20 Belmore Street WOODSTOCK 2793 NSW Saving record OC 2019/35.1, 116 Darling Street COWRA 2794 NSW Saving record OC 2015/95.1, 1889 Reg Hailstone Way WOODSTOCK 2793 NSW Saving record DA 2020/20.1, 19 Baronga Street COWRA 2794 NSW Saving record DA 2020/21.1, 15 Tokyo Terrace COWRA 2794 NSW Saving record CC 2020/20.1, 19 Baronga Street COWRA 2794 NSW Saving record FS 2018/112.1, 46 Hartley Street COWRA 2794 NSW Saving record OC 2019/38.1, 27 Vaux Street COWRA 2794 NSW Saving record OC 2019/87.1, 2037 Forbes Road COWRA 2794 NSW Saving record OC 2019/7.1, 53 Comerford Street COWRA 2794 NSW Collecting feed data for liverpool_plains... Saving record DA 2020/14.1, 47 Single Street WERRIS CREEK 2341 NSW Collecting feed data for uralla... Collecting feed data for walcha... Saving record CDC 2018/2.2, 57N Angle Street WALCHA 2354 NSW Saving record S68 2020/5.1, 163W Evans Street WALCHA 2354 NSW Saving record DA 2020/7.1, 58S Thee Street WALCHA 2354 NSW Saving record DA 2020/6.1, 106W Legge Street WALCHA 2354 NSW Saving record DA 2020/2.2, 12E Croudace Street WALCHA 2354 NSW Saving record S68 2020/4.1, 169-179 Darjeeling Road WALCHA 2354 NSW Saving record CC 2020/29.1, 10S Pakington Street WALCHA 2354 NSW Saving record CC 2020/30.1, 10S Pakington Street WALCHA 2354 NSW Saving record CC 2020/31.1, 10S Pakington Street WALCHA 2354 NSW Saving record CC 2020/32.1, 10S Pakington Street WALCHA 2354 NSW Saving record CC 2020/33.1, 10S Pakington Street WALCHA 2354 NSW Saving record OC 2020/33.1, 10S Pakington Street WALCHA 2354 NSW Saving record OC 2020/34.1, 10S Pakington Street WALCHA 2354 NSW Saving record OC 2020/35.1, 10S Pakington Street WALCHA 2354 NSW Saving record OC 2020/36.1, 10S Pakington Street WALCHA 2354 NSW Saving record OC 2020/37.1, 10S Pakington Street WALCHA 2354 NSW Saving record DA 2020/5.1, 10S Pakington Street WALCHA 2354 NSW Collecting feed data for weddin... Collecting feed data for maitland... *************************************************** Now retrying authorities which earlier had failures maitland: ERROR: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (unable to get local issuer certificate) *************************************************** Collecting feed data for maitland... /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 1890 times by openaustralia DevAppProject jesse-a-reilly mattykn vietbaracon

To download data sign in with GitHub

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

rows 10 / 1327

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 6 hours

Total cpu time used: 6 minutes

Total disk space used: 498 KB

History

  • Auto ran revision cd7ec55f and failed .
    34 records added, 33 records removed in the database
  • Auto ran revision cd7ec55f and failed .
    33 records added, 29 records removed in the database
  • Auto ran revision cd7ec55f and failed .
    29 records added, 28 records removed in the database
  • Auto ran revision cd7ec55f and failed .
    28 records added, 28 records removed in the database
  • Auto ran revision cd7ec55f and failed .
    28 records added, 27 records removed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

multiple_horizon / scraper.rb