Skip to content

Commit

Permalink
Record "comment_authority" which is the name of the authority that th…
Browse files Browse the repository at this point in the history
…e comment would go to at comment_email
  • Loading branch information
mlandauer committed Feb 8, 2023
1 parent 1fa02f5 commit 9fd8435
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
page = agent.post("https://plan.sa.gov.au/have_your_say/notified_developments/current_notified_developments/assets/getpublicnoticedetail", aid: application["applicationID"])
detail = JSON.parse(page.body)
record["comment_email"] = detail["email"]
record["comment_authority"] = detail["organisation"]

puts "Saving record #{record['council_reference']}, #{record['address']}"
ScraperWiki.save_sqlite(['council_reference'], record)
Expand Down

0 comments on commit 9fd8435

Please sign in to comment.