Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezpolley committed Oct 20, 2023
1 parent 3bfa45b commit 40456f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

# This endpoint is not "protected" by Kasada
url = "https://cdn.plan.sa.gov.au/public-notifications/getpublicnoticessummary"
applications = JSON.parse(agent.get(url).body)
response = agent.get(url)
applications = JSON.parse(response.body)
applications.each do |application|
record = {
"council_reference" => application["applicationID"].to_s,
Expand Down

0 comments on commit 40456f8

Please sign in to comment.