소스 검색

add NW Leics

import/raw
duncan.parkes 17 년 전
부모
커밋
e7930ae668
2개의 변경된 파일31개의 추가작업 그리고 1개의 파일을 삭제
  1. +29
    -0
      trunk/cgi-bin/NW Leicestershire.cgi
  2. +2
    -1
      trunk/python_scrapers/PublicAccessSites.csv

+ 29
- 0
trunk/cgi-bin/NW Leicestershire.cgi 파일 보기

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

# This is the parser for North West Leicestershire District 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 = "North West Leicestershire District Council"
authority_short_name = "NW Leicestershire"
base_url = "http://paccess.nwleics.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

+ 2
- 1
trunk/python_scrapers/PublicAccessSites.csv 파일 보기

@@ -70,4 +70,5 @@
"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"
"Gravesham Borough Council", "Gravesham", "http://195.102.67.4/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"
"London Borough Of Newham", "Newham", "http://pacaps.newham.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"London Borough Of Newham", "Newham", "http://pacaps.newham.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"North West Leicestershire District Council", "NW Leicestershire", "http://paccess.nwleics.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"

불러오는 중...
취소
저장