ianheggie-oaf / BurdekinShire_DAs

Burdekin Shire Current Development Applications


Introduction

Welcome to the Burdekin, sugar capital of Australia and one of the most prosperous rural communities in the country. It's also one of the prettiest districts along the Queensland coast and boasts a stable population of warm, friendly and down-to-earth residents.

It scrapes data from: https://www.burdekin.qld.gov.au/Planning-building-and-development/Planning-and-Development/Development-applications/Current-development-applications

Install

bundle install

To run the scraper

bundle exec ruby scraper.rb

You can, but don't need to, set MORPH_AUSTRALIAN_PROXY to the url for an Australian proxy

Set MORPH_DEBUG to '1' to see debug output

Expected output

Fetching page: https://www.burdekin.qld.gov.au/Planning-building-and-development/Planning-and-Development/Development-applications/Current-development-applications
found 23 applications on page
Storing MCU25/0014 - Mitchell Road, Clare QLD 4807: Decided

Storing RAL25/0019 - 151 and 157 Burstall Road Airdmillan: In Progress

(etc)

Storing MCU23/0003 - 8-16 Eighth Avenue Home Hill: Decided

Storing MCU25/0013 - 94 Macmillan Street, Ayr QLD 4807: Decided

Scraping complete. Total records saved: 23

Execution time ~ 10 seconds.

To run style and coding checks

bundle exec rubocop

To check for security updates

gem install bundler-audit
bundle-audit

Contributors PuZZleDucK mlandauer ianheggie-oaf equivalentideas benrfairless henare

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... /app/vendor/bundle/ruby/3.2.0/gems/mechanize-2.8.5/lib/mechanize/http/agent.rb:333:in `fetch': 404 => Net::HTTPNotFound for https://www.burdekin.qld.gov.au/Planning-building-and-development/Planning-and-Development/Development-applications/Current-development-applications -- unhandled response (Mechanize::ResponseCodeError) from /app/vendor/bundle/ruby/3.2.0/gems/mechanize-2.8.5/lib/mechanize.rb:465:in `get' from scraper.rb:20:in `<main>'

Statistics

Average successful run time: half a minute

Total run time: 3 minutes

Total cpu time used: less than 10 seconds

Total disk space used: 53.3 KB

History

  • Manually ran revision e5d4d80f and failed .
  • Manually ran revision bd3b831c and completed successfully .
    22 records added, 22 records removed in the database
  • Manually ran revision bd3b831c and completed successfully .
    22 records added, 22 records removed in the database
  • Manually ran revision 8dd77f0d and completed successfully .
    22 records added, 18 records removed in the database
  • Manually ran revision a36c3d0e and completed successfully .
    19 records added, 19 records removed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

BurdekinShire_DAs / scraper.rb