Skip to content

Commit

Permalink
different way to access body
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezpolley committed Oct 20, 2023
1 parent 88b2608 commit 93e6ec3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
Expand Up @@ -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,
Expand Down

0 comments on commit 93e6ec3

Please sign in to comment.