From 3bae3f5b9de8f7f0189b67c26f3e4d2701e37f80 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 12 Sep 2007 14:56:45 +0000 Subject: [PATCH] add Tendring --- trunk/cgi-bin/Tendring.cgi | 29 +++++++++++++++++++++++ trunk/python_scrapers/SitesToGenerate.csv | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 trunk/cgi-bin/Tendring.cgi diff --git a/trunk/cgi-bin/Tendring.cgi b/trunk/cgi-bin/Tendring.cgi new file mode 100755 index 0000000..5b3d494 --- /dev/null +++ b/trunk/cgi-bin/Tendring.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Tendring 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 = "Tendring District Council" +authority_short_name = "Tendring" +base_url = "http://195.99.151.54/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/SitesToGenerate.csv b/trunk/python_scrapers/SitesToGenerate.csv index 426eefb..f8eef74 100644 --- a/trunk/python_scrapers/SitesToGenerate.csv +++ b/trunk/python_scrapers/SitesToGenerate.csv @@ -130,4 +130,5 @@ "Broads Authority", "Broads", "https://planning.broads-authority.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" "Bracknell Forest Borough Council", "Bracknell Forest", "https://my.bracknell-forest.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" "Chiltern District Council", "Chiltern", "https://isa.chiltern.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" -"Hinkley and Bosworth Borough Council", "Hinkley and Bosworth", "https://cx.hinckley-bosworth.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file +"Hinkley and Bosworth Borough Council", "Hinkley and Bosworth", "https://cx.hinckley-bosworth.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" +"Tendring District Council", "Tendring", "http://195.99.151.54/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file