Skip to content

Commit

Permalink
updated comment url - planningalerts-scrapers#3
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveMyData committed Oct 9, 2018
1 parent 6fafdea commit fc07bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Expand Up @@ -7,7 +7,7 @@
page = agent.get(url)

base_info_url = 'https://eproperty.marrickville.nsw.gov.au/eServices/P1/eTrack/eTrackApplicationDetails.aspx?r=MC.P1.WEBGUEST&f=%24P1.ETR.APPDET.VIW&ApplicationId='
comment_url = 'http://www.marrickville.nsw.gov.au/en/development/development-applications/da-on-exhibition/lodge-a-comment-on-a-da/'
comment_url = 'mailto:council@innerwest.nsw.gov.au?subject=Development Application - '

(page/'//*[@id="ctl00_Content_cusApplicationResultsGrid_pnlCustomisationGrid"]').search('table').each do |t|
closing_date = t.search('td')[7].inner_text
Expand All @@ -19,7 +19,7 @@
'on_notice_to' => on_notice_to,
'address' => t.search('td')[5].inner_text,
'info_url' => base_info_url + t.search('td')[1].inner_text,
'comment_url' => comment_url,
'comment_url' => comment_url + t.search('td')[1].inner_text,
'date_scraped' => Date.today.to_s
}

Expand Down

0 comments on commit fc07bd3

Please sign in to comment.