浏览代码

Search field name variant for Idox eg Bolton

tags/v0.4.5
Adrian Short 6 年前
父节点
当前提交
6d72d25166
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. +6
    -1
      lib/uk_planning_scraper/idox.rb

+ 6
- 1
lib/uk_planning_scraper/idox.rb 查看文件

@@ -36,7 +36,12 @@ module UKPlanningScraper
# 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\.caseType", params[:application_type])
form.send(:"searchCriteria\.caseType", params[:application_type]) if form.has_field? 'searchCriteria.caseType'
# Some Idox sites (eg Bolton) call this 'searchCriteria.developmentType'
form.send(:"searchCriteria\.developmentType", params[:application_type]) if form.has_field? 'searchCriteria.developmentType'
page = form.submit

loop do


正在加载...
取消
保存