From cafb412b5628ca48a12adf5a59ed9b7519fe6198 Mon Sep 17 00:00:00 2001 From: "duncan.parkes@gmail.com" Date: Sat, 20 Jun 2009 19:40:55 +0000 Subject: [PATCH] Fix Canterbury - just a new url. --- trunk/SitesToGenerate.csv | 2 +- trunk/python_scrapers/AcolnetParser.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/SitesToGenerate.csv b/trunk/SitesToGenerate.csv index cfb7ea8..f240df2 100644 --- a/trunk/SitesToGenerate.csv +++ b/trunk/SitesToGenerate.csv @@ -50,7 +50,7 @@ "Cambridgeshire County Council","Cambridgeshire",,,,,,"http://planapps2.cambridgeshire.gov.uk/DCWebPages/AcolNetCGI.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser", "London Borough of Camden","Camden",,,,,,"http://planningrecords.camden.gov.uk/","PlanningExplorer","CamdenParser", "Cannock Chase District Council","Cannock Chase",,,,,,"http://planning.cannockchasedc.com/swiftlg/apas/run/wphappcriteria.display","SwiftLG","SwiftLGParser", -"Canterbury City Council","Canterbury",,,,,,"http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","CanterburyParser", +"Canterbury City Council","Canterbury",,,,,,"http://www2.canterbury.gov.uk/planning/acolnetcgi.cgi?ACTION=UNWRAP&RIPNAME=Root.PgeSearch","AcolnetParser","CanterburyParser", "Caradon District Council","Caradon",,,,,,"http://publicaccess.caradon.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser", "Carlisle City Council","Carlisle",,,,,,"http://planning.carlisle.gov.uk/PlanData/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser", "Carmarthenshire County Council","Carmarthenshire",,,,,,,"Carmarthenshire","CarmarthenshireParser", diff --git a/trunk/python_scrapers/AcolnetParser.py b/trunk/python_scrapers/AcolnetParser.py index 467b6be..fe1bcdd 100644 --- a/trunk/python_scrapers/AcolnetParser.py +++ b/trunk/python_scrapers/AcolnetParser.py @@ -219,6 +219,7 @@ class BlackpoolParser(AcolnetParser): class CanterburyParser(AcolnetParser): """Here the apps are one row each in a big table.""" + comments_email_address = "development.control@canterbury.gov.uk" def _getResultsSections(self, soup): return soup.find("table").findAll("tr")[1:] @@ -351,7 +352,7 @@ if __name__ == '__main__': # parser = AcolnetParser("Bolton", "Bolton", "http://www.planning.bolton.gov.uk/DCOnlineV2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = BridgnorthParser("Bridgnorth", "Bridgnorth", "http://www2.bridgnorth-dc.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch") #parser = AcolnetParser("Bury", "Bury", "http://e-planning.bury.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") - #parser = CanterburyParser("Canterbury", "Canterbury", "http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") + parser = CanterburyParser("Canterbury", "Canterbury", "http://www2.canterbury.gov.uk/planning/acolnetcgi.cgi?ACTION=UNWRAP&RIPNAME=Root.PgeSearch") # parser = AcolnetParser("Carlisle", "Carlisle", "http://planning.carlisle.gov.uk/PlanData/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = AcolnetParser("Croydon", "Croydon", "http://planning.croydon.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = AcolnetParser("Derby", "Derby", "http://eplanning.derby.gov.uk/acolnet/planningpages02/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") @@ -364,7 +365,7 @@ if __name__ == '__main__': #parser = BoltonLikeParser("Hertsmere", "Hertsmere", "http://www2.hertsmere.gov.uk/ACOLNET/DCOnline//acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = LewishamParser("Lewisham", "Lewisham", "http://acolnet.lewisham.gov.uk/lewis-xslpagesdc/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.PgeSearch") #parser = AcolnetParser("Mid Suffolk", "Mid Suffolk", "http://planning.midsuffolk.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") - parser = AcolnetParser("New Forest District Council", "New Forest DC", "http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") + #parser = AcolnetParser("New Forest District Council", "New Forest DC", "http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = AcolnetParser("New Forest National Park Authority", "New Forest NPA", "http://web01.newforestnpa.gov.uk/Pages3/AcolNetCGI.dcgov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = AcolnetParser("North Hertfordshire", "North Herts", "http://www.north-herts.gov.uk/dcdataonline/Pages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch") #parser = AcolnetParser("North Wiltshire", "North Wilts", "http://planning.northwilts.gov.uk/DCOnline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")