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 8e6529f commit a9bd7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
url = "https://cdn.plan.sa.gov.au/public-notifications/getpublicnoticessummary"
response = agent.get(url)
rescue Mechanize::ResponseCodeError => errorResponse
puts "Encountered error code #{errorResponse#response_code}"
puts "Encountered error code #{errorResponse.response_code}"
puts "Body:\n#{errorResponse#page}"
end
applications = JSON.parse(response.body)
Expand Down

0 comments on commit a9bd7d3

Please sign in to comment.