From 3fe1fd3aae6e7da92232b8a0e55e4c0546c5a5e6 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 11 Apr 2007 20:04:18 +0000 Subject: [PATCH] add newham --- cgi-bin/Newham.cgi | 29 +++++++++++++++++++++++++++ python_scrapers/PublicAccessSites.csv | 1 + 2 files changed, 30 insertions(+) create mode 100755 cgi-bin/Newham.cgi diff --git a/cgi-bin/Newham.cgi b/cgi-bin/Newham.cgi new file mode 100755 index 0000000..27114a6 --- /dev/null +++ b/cgi-bin/Newham.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for London Borough Of Newham. +# 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 = "London Borough Of Newham" +authority_short_name = "Newham" +base_url = "http://pacaps.newham.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/python_scrapers/PublicAccessSites.csv b/python_scrapers/PublicAccessSites.csv index 4915548..a3d267c 100644 --- a/python_scrapers/PublicAccessSites.csv +++ b/python_scrapers/PublicAccessSites.csv @@ -70,3 +70,4 @@ "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" \ No newline at end of file