浏览代码

add Chorley

import/raw
duncan.parkes 17 年前
父节点
当前提交
5e1c467d11
共有 2 个文件被更改,包括 30 次插入0 次删除
  1. +29
    -0
      trunk/cgi-bin/Chorley.cgi
  2. +1
    -0
      trunk/python_scrapers/PublicAccessSites.csv

+ 29
- 0
trunk/cgi-bin/Chorley.cgi 查看文件

@@ -0,0 +1,29 @@
#!/usr/local/bin/python

# This is the parser for Chorley Borough Council.
# it is generated from the file CGITemplate

import cgi
import cgitb
#cgitb.enable(display=0, logdir="/tmp")


form = cgi.FieldStorage()
day = form.getfirst('day')
month = form.getfirst('month')
year = form.getfirst('year')


authority_name = "Chorley Borough Council"
authority_short_name = "Chorley"
base_url = "http://planning.chorley.gov.uk/PublicAccess/tdc/"

import PublicAccess

parser = PublicAccess.PublicAccessParser(authority_name, authority_short_name, base_url)

xml = parser.getResults(day, month, year)

print "Content-Type: text/xml" # XML is following
print
print xml # print the xml

+ 1
- 0
trunk/python_scrapers/PublicAccessSites.csv 查看文件

@@ -68,3 +68,4 @@
"Ealing Council", "Ealing", "http://www.pam.ealing.gov.uk/", "ApplicationSearchServletParser", "EalingSearchParser"
"Denbighshire County Council", "Denbighshire", "http://planning.denbighshire.gov.uk/", "ApplicationSearchServletParser", "DenbighshireSearchParser"
"Wear Valley District Council", "Wear Valley", "http://planning.wearvalley.gov.uk/", "ApplicationSearchServletParser", "WearValleySearchParser"
"Chorley Borough Council", "Chorley", "http://planning.chorley.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"

正在加载...
取消
保存