From ba7715b26b4c7329a095652b10b99e97ee51b4ae Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 11 Apr 2007 22:57:36 +0000 Subject: [PATCH] add redditch --- trunk/cgi-bin/Redditch.cgi | 29 +++++++++++++++++++++ trunk/python_scrapers/PublicAccessSites.csv | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 trunk/cgi-bin/Redditch.cgi diff --git a/trunk/cgi-bin/Redditch.cgi b/trunk/cgi-bin/Redditch.cgi new file mode 100755 index 0000000..8ce52b2 --- /dev/null +++ b/trunk/cgi-bin/Redditch.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Redditch 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 = "Redditch Borough Council" +authority_short_name = "Redditch" +base_url = "http://access.redditchbc.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 diff --git a/trunk/python_scrapers/PublicAccessSites.csv b/trunk/python_scrapers/PublicAccessSites.csv index 3ded190..9e077da 100644 --- a/trunk/python_scrapers/PublicAccessSites.csv +++ b/trunk/python_scrapers/PublicAccessSites.csv @@ -71,4 +71,5 @@ "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" -"North West Leicestershire District Council", "NW Leicestershire", "http://paccess.nwleics.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file +"North West Leicestershire District Council", "NW Leicestershire", "http://paccess.nwleics.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" +"Redditch Borough Council", "Redditch", "http://access.redditchbc.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file