Skip to content

Commit

Permalink
added data recovery features
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveMyData committed Jun 1, 2017
1 parent 44a3bb5 commit bd4ec9c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scraper.rb
@@ -1,6 +1,18 @@
require 'scraperwiki'
require 'mechanize'

case ENV['MORPH_PERIOD']
when 'thismonth'
period = 'TM'
when 'lastmonth'
period = 'LM'
else
period = 'TW'
end
puts "Getting '" + period + "' data, changable via MORPH_PERIOD environment";

url = "https://ecerts.ssc.nsw.gov.au/eproperty/P1/eTrack/eTrackApplicationSearchResults.aspx?Field=S&Period=" + period + "&Group=DA&SearchFunction=SSC.P1.ETR.SEARCH.DA&r=SSC.P1.WEBGUEST&f=SSC.ETR.SRCH.STW.DA&ResultsFunction=SSC.P1.ETR.RESULT.DA"

url = "https://feeds.ssc.nsw.gov.au/?page=PlanningAlerts"
comment_url = "mailto:ssc@ssc.nsw.gov.au"

Expand Down

0 comments on commit bd4ec9c

Please sign in to comment.