Browse Source

Add status search for Idox

tags/v0.5.0
Adrian Short 4 years ago
parent
commit
df0be313e7
Signed by untrusted user: adrian GPG Key ID: 4B54F9AE91AB06BB
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      lib/uk_planning_scraper/idox.rb

+ 1
- 0
README.md View File

@@ -107,6 +107,7 @@ applicant_name("Mr and Mrs Smith") # Currently Idox only
application_type("Householder") # Currently Idox only application_type("Householder") # Currently Idox only
development_type("") # Currently Idox only development_type("") # Currently Idox only
case_officer_code("100000") # Northgate only case_officer_code("100000") # Northgate only
status("Pending Consideration") # Check valid status codes for each authority


scrape # runs the scraper scrape # runs the scraper
``` ```


+ 1
- 0
lib/uk_planning_scraper/idox.rb View File

@@ -42,6 +42,7 @@ module UKPlanningScraper
form.send(:"date(applicationDecisionEnd)", params[:decided_to].strftime(date_format)) if params[:decided_to] form.send(:"date(applicationDecisionEnd)", params[:decided_to].strftime(date_format)) if params[:decided_to]


form.send(:"searchCriteria\.description", params[:keywords]) form.send(:"searchCriteria\.description", params[:keywords])
form.send(:"searchCriteria\.caseStatus", params[:status])
# Some councils don't have the applicant name on their form, eg Bexley # Some councils don't have the applicant name on their form, eg Bexley
form.send(:"searchCriteria\.applicantName", params[:applicant_name]) if form.has_field? 'searchCriteria.applicantName' form.send(:"searchCriteria\.applicantName", params[:applicant_name]) if form.has_field? 'searchCriteria.applicantName'


Loading…
Cancel
Save