From c3ff14a7a0c2288b37065d75c0ecdff37b8f87c6 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 11 Apr 2007 23:10:55 +0000 Subject: [PATCH] add stratford, teignbridge and west berks --- trunk/cgi-bin/Stratford.cgi | 29 +++++++++++++++++++++ trunk/cgi-bin/Teignbridge.cgi | 29 +++++++++++++++++++++ trunk/cgi-bin/West Berkshire.cgi | 29 +++++++++++++++++++++ trunk/python_scrapers/PublicAccessSites.csv | 4 ++- 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100755 trunk/cgi-bin/Stratford.cgi create mode 100755 trunk/cgi-bin/Teignbridge.cgi create mode 100755 trunk/cgi-bin/West Berkshire.cgi diff --git a/trunk/cgi-bin/Stratford.cgi b/trunk/cgi-bin/Stratford.cgi new file mode 100755 index 0000000..358bb68 --- /dev/null +++ b/trunk/cgi-bin/Stratford.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Stratford-on-Avon 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 = "Stratford-on-Avon District Council" +authority_short_name = "Stratford" +base_url = "http://217.33.198.119/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/cgi-bin/Teignbridge.cgi b/trunk/cgi-bin/Teignbridge.cgi new file mode 100755 index 0000000..5fb9f0a --- /dev/null +++ b/trunk/cgi-bin/Teignbridge.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Teignbridge 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 = "Teignbridge District Council" +authority_short_name = "Teignbridge" +base_url = "http://213.152.63.161/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/cgi-bin/West Berkshire.cgi b/trunk/cgi-bin/West Berkshire.cgi new file mode 100755 index 0000000..1c40296 --- /dev/null +++ b/trunk/cgi-bin/West Berkshire.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for West Berkshire 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 = "West Berkshire Council" +authority_short_name = "West Berkshire" +base_url = "http://ww2.westberks.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 9d9580d..776a8b9 100644 --- a/trunk/python_scrapers/PublicAccessSites.csv +++ b/trunk/python_scrapers/PublicAccessSites.csv @@ -74,4 +74,6 @@ "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" "Stirling Council", "Stirling", "http://planpub.stirling.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" -"Stratford-on-Avon District Council", "Stratford", "http://217.33.198.119/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file +"Stratford-on-Avon District Council", "Stratford", "http://217.33.198.119/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Teignbridge District Council", "Teignbridge", "http://213.152.63.161/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file