From 1fc6f77e78dded88e9db4301180561e07ff2a727 Mon Sep 17 00:00:00 2001 From: myob9a Date: Sun, 25 Feb 2024 11:28:59 +1100 Subject: [PATCH] Update scraper.rb Updated following ACT Gov change to URL --- scraper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper.rb b/scraper.rb index 17a7321..c96cf50 100644 --- a/scraper.rb +++ b/scraper.rb @@ -2,7 +2,7 @@ require 'scraperwiki' agent = Mechanize.new -url = "https://www.planning.act.gov.au/development-applications-assessments/development-applications" +url = https://www.planning.act.gov.au/applications-and-assessments/development-applications/browse-das" page = agent.get(url) page.search(".DA-list-item").each do |item| @@ -14,7 +14,7 @@ address: address, description: item.at(".proposal-text").inner_text.strip, on_notice_to: Date.parse(item.at(".representation-closes strong"), "d/m/Y").to_s, - info_url: item.at(".da-links a.da-links__details")["href"], + info_url: item.at("da-links__details a.da-links__details")["href"], date_scraped: Date.today.to_s } if street_address == ""