@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Angus Council" | authority_name = "Angus Council" | ||||
authority_short_name = "Angus" | authority_short_name = "Angus" | ||||
base_url = "http://planning.angus.gov.uk/PublicAccess/" | |||||
base_url = "http://planning.angus.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Basildon District Council" | authority_name = "Basildon District Council" | ||||
authority_short_name = "Basildon" | authority_short_name = "Basildon" | ||||
base_url = "http://planning.basildon.gov.uk/publicaccess/" | |||||
base_url = "http://planning.basildon.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Bath and North East Somerset" | authority_name = "Bath and North East Somerset" | ||||
authority_short_name = "Bath" | authority_short_name = "Bath" | ||||
base_url = "http://planning.bathnes.gov.uk/publicaccess/" | |||||
base_url = "http://planning.bathnes.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Bexley Council" | authority_name = "Bexley Council" | ||||
authority_short_name = "Bexley" | authority_short_name = "Bexley" | ||||
base_url = "http://publicaccess.bexley.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.bexley.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Blaby District Council" | authority_name = "Blaby District Council" | ||||
authority_short_name = "Blaby" | authority_short_name = "Blaby" | ||||
base_url = "http://www.blaby.gov.uk/PublicAccess/" | |||||
base_url = "http://www.blaby.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Bristol City Council" | authority_name = "Bristol City Council" | ||||
authority_short_name = "Bristol" | authority_short_name = "Bristol" | ||||
base_url = "http://e2eweb.bristol-city.gov.uk/publicaccess/" | |||||
base_url = "http://e2eweb.bristol-city.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Buckinghamshire County Council" | authority_name = "Buckinghamshire County Council" | ||||
authority_short_name = "Buckinghamshire" | authority_short_name = "Buckinghamshire" | ||||
base_url = "http://www.bucksplanning.gov.uk/PublicAccess/" | |||||
base_url = "http://www.bucksplanning.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Cherwell District Council" | authority_name = "Cherwell District Council" | ||||
authority_short_name = "Cherwell" | authority_short_name = "Cherwell" | ||||
base_url = "http://cherweb.cherwell-dc.gov.uk/publicaccess/" | |||||
base_url = "http://cherweb.cherwell-dc.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "East Devon District Council" | authority_name = "East Devon District Council" | ||||
authority_short_name = "East Devon" | authority_short_name = "East Devon" | ||||
base_url = "http://planning.eastdevon.gov.uk/PublicAccess/" | |||||
base_url = "http://planning.eastdevon.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -0,0 +1,31 @@ | |||||
#!/usr/bin/python | |||||
# This is the parser for The City of Edinburgh 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 = "The City of Edinburgh Council" | |||||
authority_short_name = "Edinburgh" | |||||
base_url = "http://citydev-portal.edinburgh.gov.uk/publicaccess/dc/" | |||||
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 xml # print the xml |
@@ -0,0 +1,31 @@ | |||||
#!/usr/bin/python | |||||
# This is the parser for Fenland 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 = "Fenland District Council" | |||||
authority_short_name = "Fenland" | |||||
base_url = "http://www.fenland.gov.uk/publicaccess/dc/" | |||||
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 xml # print the xml |
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Hart District Council" | authority_name = "Hart District Council" | ||||
authority_short_name = "Hart" | authority_short_name = "Hart" | ||||
base_url = "http://publicaccess.hart.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.hart.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Huntingdonshire District Council" | authority_name = "Huntingdonshire District Council" | ||||
authority_short_name = "Huntingdonshire" | authority_short_name = "Huntingdonshire" | ||||
base_url = "http://planning.huntsdc.gov.uk/publicaccess/" | |||||
base_url = "http://planning.huntsdc.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Lancaster City Council" | authority_name = "Lancaster City Council" | ||||
authority_short_name = "Lancaster" | authority_short_name = "Lancaster" | ||||
base_url = "http://planapps.lancaster.gov.uk/PublicAccess/" | |||||
base_url = "http://planapps.lancaster.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Luton Borough Council" | authority_name = "Luton Borough Council" | ||||
authority_short_name = "Luton" | authority_short_name = "Luton" | ||||
base_url = "http://www.eplan.luton.gov.uk/PublicAccess/" | |||||
base_url = "http://www.eplan.luton.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Mid Devon District Council" | authority_name = "Mid Devon District Council" | ||||
authority_short_name = "Mid Devon" | authority_short_name = "Mid Devon" | ||||
base_url = "http://planning.middevon.gov.uk/publicaccess/" | |||||
base_url = "http://planning.middevon.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "The Borough of Oadby and Wigston" | authority_name = "The Borough of Oadby and Wigston" | ||||
authority_short_name = "Oadby and Wigston" | authority_short_name = "Oadby and Wigston" | ||||
base_url = "http://web.owbc.net/PublicAccess/" | |||||
base_url = "http://web.owbc.net/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Portsmouth City Council" | authority_name = "Portsmouth City Council" | ||||
authority_short_name = "Portsmouth" | authority_short_name = "Portsmouth" | ||||
base_url = "http://planning.portsmouth.gov.uk/PublicAccess/" | |||||
base_url = "http://planning.portsmouth.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -13,9 +13,9 @@ cookie_jar = cookielib.CookieJar() | |||||
from PlanningUtils import fixNewlines, PlanningAuthorityResults, PlanningApplication | from PlanningUtils import fixNewlines, PlanningAuthorityResults, PlanningApplication | ||||
search_form_url_end = "tdc/DcApplication/application_searchform.aspx" | |||||
search_results_url_end = "tdc/DcApplication/application_searchresults.aspx" | |||||
comments_url_end = "tdc/DcApplication/application_comments_entryform.aspx" | |||||
search_form_url_end = "DcApplication/application_searchform.aspx" | |||||
search_results_url_end = "DcApplication/application_searchresults.aspx" | |||||
comments_url_end = "DcApplication/application_comments_entryform.aspx" | |||||
class PublicAccessParser(HTMLParser.HTMLParser): | class PublicAccessParser(HTMLParser.HTMLParser): | ||||
"""This is the class which parses the PublicAccess search results page. | """This is the class which parses the PublicAccess search results page. | ||||
@@ -339,3 +339,20 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser): | |||||
if attr == "value": | if attr == "value": | ||||
self.postcode = value | self.postcode = value | ||||
# These still don't work: | |||||
# Perthshire | |||||
#http://193.63.61.22/publicaccess/tdc/DcApplication/application_searchform.aspx | |||||
#"Perth and Kinross Council", "Perthshire", "http://193.63.61.22/publicaccess/tdc/" | |||||
# Hambleton | |||||
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx | |||||
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/" | |||||
# These use https: | |||||
# Chiltern | |||||
#https://isa.chiltern.gov.uk/publicaccess/tdc/tdc_home.aspx | |||||
# Hinckley-Bosworth | |||||
#https://cx.hinckley-bosworth.gov.uk/PublicAccess/dc/DcApplication/application_searchform.aspx |
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Rushmoor Borough Council" | authority_name = "Rushmoor Borough Council" | ||||
authority_short_name = "Rushmoor" | authority_short_name = "Rushmoor" | ||||
base_url = "http://pa-dc.rushmoor.gov.uk/publicaccess/" | |||||
base_url = "http://pa-dc.rushmoor.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -0,0 +1,31 @@ | |||||
#!/usr/bin/python | |||||
# This is the parser for Scarborough 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 = "Scarborough Borough Council" | |||||
authority_short_name = "Scarborough" | |||||
base_url = "http://planning.scarborough.gov.uk/publicaccess/dc/" | |||||
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 xml # print the xml |
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Sevenoaks District Council" | authority_name = "Sevenoaks District Council" | ||||
authority_short_name = "Sevenoaks" | authority_short_name = "Sevenoaks" | ||||
base_url = "http://publicaccess.sevenoaks.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.sevenoaks.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "South Staffordshire Council" | authority_name = "South Staffordshire Council" | ||||
authority_short_name = "South Staffs" | authority_short_name = "South Staffs" | ||||
base_url = "https://services.sstaffs.gov.uk/PublicAccess/" | |||||
base_url = "https://services.sstaffs.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Southampton City Council" | authority_name = "Southampton City Council" | ||||
authority_short_name = "Southampton" | authority_short_name = "Southampton" | ||||
base_url = "http://publicaccess.southampton.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.southampton.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Spelthorne Borough Council" | authority_name = "Spelthorne Borough Council" | ||||
authority_short_name = "Spelthorne" | authority_short_name = "Spelthorne" | ||||
base_url = "http://phoenix.spelthorne.gov.uk/PublicAccess/" | |||||
base_url = "http://phoenix.spelthorne.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Stevenage Borough Council" | authority_name = "Stevenage Borough Council" | ||||
authority_short_name = "Stevenage" | authority_short_name = "Stevenage" | ||||
base_url = "http://publicaccess.stevenage.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.stevenage.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Sunderland City Council" | authority_name = "Sunderland City Council" | ||||
authority_short_name = "Sunderland" | authority_short_name = "Sunderland" | ||||
base_url = "http://www.sunderland.gov.uk/publicaccess/" | |||||
base_url = "http://www.sunderland.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Test Valley Borough Council" | authority_name = "Test Valley Borough Council" | ||||
authority_short_name = "Test Valley" | authority_short_name = "Test Valley" | ||||
base_url = "http://publicaccess.testvalley.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.testvalley.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Tonbridge and Malling Borough Council" | authority_name = "Tonbridge and Malling Borough Council" | ||||
authority_short_name = "Tonbridge" | authority_short_name = "Tonbridge" | ||||
base_url = "http://publicaccess.tmbc.gov.uk/publicaccess/" | |||||
base_url = "http://publicaccess.tmbc.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Kings Lynn and West Norfolk Borough Council" | authority_name = "Kings Lynn and West Norfolk Borough Council" | ||||
authority_short_name = "West Norfolk" | authority_short_name = "West Norfolk" | ||||
base_url = "http://online.west-norfolk.gov.uk/publicaccess/" | |||||
base_url = "http://online.west-norfolk.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Woking Borough Council" | authority_name = "Woking Borough Council" | ||||
authority_short_name = "Woking" | authority_short_name = "Woking" | ||||
base_url = "http://caps.woking.gov.uk/publicaccess/" | |||||
base_url = "http://caps.woking.gov.uk/publicaccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||
@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "City of York Council" | authority_name = "City of York Council" | ||||
authority_short_name = "York" | authority_short_name = "York" | ||||
base_url = "http://planning.york.gov.uk/PublicAccess/" | |||||
base_url = "http://planning.york.gov.uk/PublicAccess/tdc/" | |||||
import PublicAccess | import PublicAccess | ||||