planningalerts-scrapers / charters_towers

Charters Towers Regional Council Development Applications


Charters Towers Regional Council scraper

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

It scrapes development applications for Charters Towers Regional Council from the All Development Applications pages, one page per year, and feeds PlanningAlerts.

Issues with this authority are tracked in the shared issue tracker: planningalerts-scrapers/issues#79.

How the site is structured

  • Pages from 2022 onwards list one accordion per application. The accordion heading is REF - ADDRESS and the first body paragraph is REF - DESCRIPTION - ADDRESS.
  • Pages for 2017-2021 (and a leftover accordion on the 2022 page) are flat lists of decision notice PDFs. A record is extracted when the link text contains an address; most 2017-2019 links carry only a reference so they are skipped.
  • The application received date is not published anywhere on these pages, so date_received is not set.
  • The site sits behind Akamai, which rejects requests without ordinary browser headers (including the Sec-Fetch-* set).

Running

bundle install bundle exec ruby scraper.rb

Environment variables:

  • MORPH_AUSTRALIAN_PROXY - optional; when set (e.g. http://morph:password@au.proxy.oaf.org.au:8888) all requests go through the Australian proxy.
  • MORPH_DEBUG - optional; when set, prints each record as it is saved and the reason for every skipped accordion or notice link.

Expected output is a per-year-page count of records found followed by:

Finished - added N records

with N around 200, and a data.sqlite file in the working directory.

Contributors CloCkWeRX henare mlandauer benrfairless

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... Running ruby 3.2.2 2026-development-applications: 38 applications from accordions 2025-development-applications: 30 applications from accordions 2024-development-applications: 34 applications from accordions 2023-development-applications: 35 applications from accordions 2022-development-applications: 27 applications from accordions 2021-decision-notices: 1 applications from accordions 2020-decision-notices: 1 applications from accordions 2022-development-applications: 9 applications from notice lists 2021-decision-notices: 28 applications from notice lists 2020-decision-notices: 17 applications from notice lists Finished - added 220 records

Data

Downloaded 8240 times by openaustralia dcalde LoveMyData mlandauer jesse-a-reilly tkrikke repose-lecture DevAppProject TheZepto 538digital emikulic Joel-Tan_valocity henare Jedwards157 jeremyw24 planometric-vic

To download data sign in with GitHub

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

rows 10 / 356

date_scraped description info_url date_received council_reference address comment_url
2012-10-31
Reconfiguration of a 1 lot into 2 lots
2012-06-01
RL12/152
11 Davies Street, Richmond Hill, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Material Change of Use - 4 Residential Units
2012-06-12
MC12/162
24 Towers Street, Grand Secret, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Reconfiguration of 1 lot into 5 lots
2012-06-19
RL12/165
Ewan Road, Paluma, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Operational Work - Dalrymple Trade Training Centre
2012-06-21
OW12/166
1-13 Macpherson Street, Columbia, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Reconfiguration of 1 lot into 2 lots
2012-06-25
RL12/173
3 Cassidy Lane, Queenton, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Material Change of Use - Bulk Store for Mining Supplies (Drill Rods, Drill Bits and the like)
2012-06-27
MC12/175
219 Plum Tree Road, Broughton, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Material Change of Use - Home Occupation (Massage Therapy)
2012-07-25
MC12/186
25 Armstrong Road, Queenton, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Reconfiguration of 2 lots into 2 lots (realignment of boundaries)
2012-08-01
RL12/190
68-76 Mt Leyshon Road, Mosman Park, QLD
mailto:mail@charterstowers.qld.gov.au
2012-10-31
Reconfiguration of 1 lot into 2 lots
2012-08-22
RL12/198
6 Coane Street, Alabama Hill, QLD
mailto:mail@charterstowers.qld.gov.au
2013-01-11
Material Change of Use (Remove heritage listed Dwelling and erect 5 Detached Units)
2012-10-29
MC12/257
167-169 Gill Street, Charters Towers City, QLD
mailto:mail@charterstowers.qld.gov.au

Statistics

Average successful run time: less than 20 seconds

Total run time: about 1 month

Total cpu time used: about 1 hour

Total disk space used: 188 KB

History

  • Auto ran revision 44b49ccf and completed successfully .
    220 records added, 220 records removed in the database
  • Auto ran revision 44b49ccf and completed successfully .
    220 records added, 219 records removed in the database
  • Auto ran revision 44b49ccf and completed successfully .
    219 records added, 219 records removed in the database
  • Auto ran revision 44b49ccf and completed successfully .
    219 records added, 2 records removed in the database
  • Auto ran revision 2d779b61 and completed successfully .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

charters_towers / scraper.rb