From 93e6ec39fc2f73cf8f65ad7fca33c791d28b558e Mon Sep 17 00:00:00 2001 From: James Polley Date: Fri, 20 Oct 2023 13:45:51 +1100 Subject: [PATCH] different way to access body --- scraper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scraper.rb b/scraper.rb index d06b039..8703dee 100644 --- a/scraper.rb +++ b/scraper.rb @@ -22,7 +22,8 @@ # This endpoint is not "protected" by Kasada url = "https://plan.sa.gov.au/have_your_say/notified_developments/current_notified_developments/assets/getpublicnoticessummary" -applications = JSON.parse(capybara.visit(url).body) +capybara.visit(url) +applications = JSON.parse(capybara.body) applications.each do |application| record = { "council_reference" => application["applicationID"].to_s,