From cced85fccd8a1919a8d5163853cb881823937268 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Sat, 14 Apr 2007 20:20:30 +0000 Subject: [PATCH] add bolsover --- cgi-bin/Bolsover.cgi | 29 +++++++++++++++++++++++++++ python_scrapers/PublicAccessSites.csv | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 cgi-bin/Bolsover.cgi diff --git a/cgi-bin/Bolsover.cgi b/cgi-bin/Bolsover.cgi new file mode 100755 index 0000000..3fe75fd --- /dev/null +++ b/cgi-bin/Bolsover.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Bolsover 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 = "Bolsover District Council" +authority_short_name = "Bolsover" +base_url = "http://217.158.161.181/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/python_scrapers/PublicAccessSites.csv b/python_scrapers/PublicAccessSites.csv index 776a8b9..07194e7 100644 --- a/python_scrapers/PublicAccessSites.csv +++ b/python_scrapers/PublicAccessSites.csv @@ -76,4 +76,5 @@ "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" "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 +"West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Bolsover District Council", "Bolsover", "http://217.158.161.181/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"