Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

[WIP] Add a morph.io scraper to collect new councillor data contributions from PlanningAlerts #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions scraper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# get the contributions from the PlanningAlerts Contributions API
# e.g https://www.planningalerts.org.au/councillor_contributions.json
#
# for each contribution
#
# git checkout a new branch based on the contribution id. Maybe use shell out http://shiroyasha.io/running-shell-commands-from-ruby.html ?
#
# Merge the changes (with the rake task? bundle exec rake update_state_from_remote_csv[vic,https://www.planningalerts.org.au/authorities/glen_eira/councillor_contributions/5.csv] )
#
# if there are changes to the ./data directory
# stage them
#
# Commit the changes
#
# Open/ReOpen a PR from the new branch with some useful info, like the contributor's
# name and the source of the information.
#
# TODO: This process could also manage updates to the Crontribution and add
# commits to the contribution branch/PR