jamezpolley / morph-division-postcode-correspondence

Scrapes AEC for electorate/postcode mapping.


A mapping of Australian postcodes to federal electorates according to the Australian Electoral Commission.

The redistributedElectorate column of the data is the electorate which will be used at the next federal electorate for the given locality. For states where there was no redistribution the column will be blank.

To get a consolidated list of electorate/postcode mappings for the next election:

select distinct state, suburb, postcode, coalesce(nullif(redistributedElectorate,""), electorate) as electorate from data

Pull requests welcome.

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

Contributors jamezpolley

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Node.js app detected  -----> Creating runtime environment   NPM_CONFIG_LOGLEVEL=error  NPM_CONFIG_CAFILE=/etc/ssl/certs/ca-certificates.crt  NODE_ENV=production  NODE_MODULES_CACHE=true  NODE_TLS_REJECT_UNAUTHORIZED=0  NODE_VERBOSE=false  -----> Installing binaries  engines.node (package.json): 10.3.0  engines.npm (package.json): unspecified (use default)   Resolving node version 10.3.0...  Downloading and installing node 10.3.0...  Using default npm version: 6.1.0  -----> Installing dependencies  Installing node modules (package.json)   > sqlite3@4.0.9 install /tmp/build/node_modules/sqlite3  > node-pre-gyp install --fallback-to-build   [sqlite3] Success: "/tmp/build/node_modules/sqlite3/lib/binding/node-v64-linux-x64/node_sqlite3.node" is installed via remote  added 131 packages from 163 contributors and audited 259 packages in 7.178s  found 0 vulnerabilities   -----> Build  -----> Caching build  - node_modules  -----> Pruning devDependencies  audited 259 packages in 1.527s  found 0 vulnerabilities   -----> Build succeeded!   -----> Change to Node.js build process   Heroku has begun executing the "build" script defined in package.json  during Node.js builds.   Read more: https://devcenter.heroku.com/changelog-items/1573   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running...

Data

Downloaded 0 times

To download data sign in with GitHub

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

rows 0 / 0

Statistics

Average successful run time: 1 minute

Total run time: 5 minutes

Total cpu time used: less than 5 seconds

Total disk space used: 41.3 KB

History

  • Manually ran revision 7090af21 and completed successfully .
    nothing changed in the database
  • Manually ran revision 7090af21 and completed successfully .
    nothing changed in the database
  • Manually ran revision 8cf0fda4 and completed successfully .
    nothing changed in the database
  • Manually ran revision c35374fd and failed .
  • Created on morph.io