Skip to content

Commit

Permalink
commented authorities out for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreM101 committed Apr 27, 2021
1 parent 2a4ca84 commit a785d09
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions lib/masterview_scraper/authorities.rb
Expand Up @@ -2,7 +2,7 @@

module MasterviewScraper
AUTHORITIES = {
forbes: {
=begin forbes: {
url: "http://planning.forbes.nsw.gov.au",
use_api: true,
force_detail: true
Expand All @@ -26,6 +26,11 @@ module MasterviewScraper
use_api: true,
force_detail: true
},
brisbane: {
url: "https://pdonline.brisbane.qld.gov.au/MasterViewUI/Modules/ApplicationMaster",
params: { "6" => "F" },
force_detail: true
},
fairfield: {
url: "https://openaccess.fairfieldcity.nsw.gov.au/OpenAccess/Modules/Applicationmaster",
params: { "4a" => 10, "6" => "F" },
Expand All @@ -49,25 +54,33 @@ module MasterviewScraper
state: "NSW",
force_detail: true
},
mackay: {
url: "https://planning.mackay.qld.gov.au/masterview/Modules/Applicationmaster",
params: {
"4a" => "443,444,445,446,487,555,556,557,558,559,560,564",
"6" => "F"
},
force_detail: true,
timeout: 120
},
marion: {
url: "http://development.marion.sa.gov.au/MasterViewUI",
use_api: true,
page_size: 10,
force_detail: true
},
toowoomba: {
url: "https://pdonline.toowoombarc.qld.gov.au/Masterview/Modules/ApplicationMaster",
moreton_bay: {
url: "http://pdonline.moretonbay.qld.gov.au/Modules/applicationmaster",
params: {
"4a" => "\'488\',\'487\',\'486\',\'495\',\'521\',\'540\',\'496\',\'562\'",
"6" => "F"
},
force_detail: true
},
wyong: {
url: "http://wsconline.wyong.nsw.gov.au/applicationtracking/modules/applicationmaster",
toowoomba: {
url: "https://pdonline.toowoombarc.qld.gov.au/Masterview/Modules/ApplicationMaster",
params: {
"4a" => "437",
"5" => "T"
"4a" => "\'488\',\'487\',\'486\',\'495\',\'521\',\'540\',\'496\',\'562\'",
"6" => "F"
},
force_detail: true
},
Expand Down Expand Up @@ -110,15 +123,15 @@ module MasterviewScraper
use_api: true,
force_detail: true
},
griffith: {
=end griffith: {
url: "https://datracking.griffith.nsw.gov.au",
use_api: true,
# Has an incomplete certificate chain. See https://www.ssllabs.com/ssltest/analyze.html?d=datracking.griffith.nsw.gov.au
disable_ssl_certificate_check: true,
force_detail: true,
australian_proxy: true
},
lismore: {
=begin lismore: {
url: "https://tracker.lismore.nsw.gov.au",
use_api: true,
force_detail: true
Expand All @@ -140,13 +153,13 @@ module MasterviewScraper
use_api: true,
force_detail: true
},
byron: {
=end byron: {
url: "https://datracker.byron.nsw.gov.au/MasterViewUI-External",
use_api: true,
page_size: 10,
force_detail: true
},
camden: {
=begin camden: {
url: "https://planning.camden.nsw.gov.au",
use_api: true,
force_detail: true,
Expand All @@ -156,5 +169,5 @@ module MasterviewScraper
# wasn't even enough. We need 3 minutes per page. Eek!
timeout: 180
}
}.freeze
=end }.freeze
end

0 comments on commit a785d09

Please sign in to comment.