diff --git a/cgi-bin/Caradon.cgi b/cgi-bin/Caradon.cgi new file mode 100755 index 0000000..57fee8b --- /dev/null +++ b/cgi-bin/Caradon.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Caradon 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 = "Caradon District Council" +authority_short_name = "Caradon" +base_url = "http://publicaccess.caradon.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/cgi-bin/Hambleton.cgi b/cgi-bin/Hambleton.cgi new file mode 100755 index 0000000..b41b085 --- /dev/null +++ b/cgi-bin/Hambleton.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Hambleton 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 = "Hambleton District Council" +authority_short_name = "Hambleton" +base_url = "http://planning.hambleton.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/cgi-bin/Moray.cgi b/cgi-bin/Moray.cgi new file mode 100755 index 0000000..e93f74e --- /dev/null +++ b/cgi-bin/Moray.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Moray 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 = "Moray Council" +authority_short_name = "Moray" +base_url = "http://public.moray.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/cgi-bin/Perthshire.cgi b/cgi-bin/Perthshire.cgi new file mode 100755 index 0000000..79907b8 --- /dev/null +++ b/cgi-bin/Perthshire.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Perth and Kinross 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 = "Perth and Kinross Council" +authority_short_name = "Perthshire" +base_url = "http://193.63.61.22/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/cgi-bin/Watford.cgi b/cgi-bin/Watford.cgi new file mode 100755 index 0000000..dd71427 --- /dev/null +++ b/cgi-bin/Watford.cgi @@ -0,0 +1,29 @@ +#!/usr/local/bin/python + +# This is the parser for Watford 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 = "Watford Borough Council" +authority_short_name = "Watford" +base_url = "http://ww3.watford.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/SitesToGenerate.csv b/python_scrapers/SitesToGenerate.csv index 386c3ec..141dbc3 100644 --- a/python_scrapers/SitesToGenerate.csv +++ b/python_scrapers/SitesToGenerate.csv @@ -121,4 +121,9 @@ "London Borough of Sutton", "Sutton", "http://82.43.4.135/FASTWEB/", "FastWeb", "FastWeb" "Welwyn-Hatfield District Council", "Welwyn-Hatfield", "https://fastweb.welhat.gov.uk/", "FastWeb", "FastWeb" "Wyre Forest District Council", "Wyre Forest", "http://www.wyreforest.gov.uk/fastweb/", "FastWeb", "FastWeb" -"London Borough of Bromley", "Bromley", "http://planningaccess.bromley.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file +"London Borough of Bromley", "Bromley", "http://planningaccess.bromley.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" +"Watford Borough Council", "Watford", "http://ww3.watford.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Caradon District Council", "Caradon", "http://publicaccess.caradon.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Moray Council", "Moray", "http://public.moray.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" +"Perth and Kinross Council", "Perthshire", "http://193.63.61.22/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" \ No newline at end of file