From 2b1da564d8443889aac3a7829efdc4f98b8026fa Mon Sep 17 00:00:00 2001 From: "duncan.parkes@gmail.com" Date: Sat, 20 Jun 2009 18:50:54 +0000 Subject: [PATCH] Fix New Forest District Council. --- 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 7df4928..cfb7ea8 100644 --- a/trunk/SitesToGenerate.csv +++ b/trunk/SitesToGenerate.csv @@ -193,7 +193,7 @@ "Newcastle City Council","Newcastle",,,,,,"http://gisccs013.newcastle.gov.uk/PublicAccess/tdc/","PublicAccess","PublicAccessParser", "Newcastle-under-Lyme Borough Council","Newcastle-under-Lyme",,,,,,"http://publicaccess.newcastle-staffs.gov.uk/PublicAccess/tdc/","PublicAccess","PublicAccessParser", "Newport City Council","Newport",,"/cgi-bin/Newport.cgi?day={day}&month={month}&year={year}",,,,,,, -"New Forest District Council","New Forest DC",,,,,,"http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","BoltonLikeParser", +"New Forest District Council","New Forest DC",,,,,,"http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser", "New Forest National Park","New Forest NP",,,,,,"http://web01.newforestnpa.gov.uk/Pages3/AcolNetCGI.dcgov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser", "London Borough Of Newham","Newham",,,,,,"http://pacaps.newham.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser", "North Ayrshire Council","North Ayrshire",,"/cgi-bin/NorthAyrshire.cgi?day={day}&month={month}&year={year}",,,,,,, diff --git a/trunk/python_scrapers/AcolnetParser.py b/trunk/python_scrapers/AcolnetParser.py index c4510e6..f049d4d 100644 --- a/trunk/python_scrapers/AcolnetParser.py +++ b/trunk/python_scrapers/AcolnetParser.py @@ -316,6 +316,7 @@ class SurreyHeathParser(AcolnetParser): class BoltonLikeParser(AcolnetParser): """Note that Bolton has ceased to be BoltonLike with its latest change of url.""" def _getCouncilReference(self, app_table): + import pdb;pdb.set_trace() return app_table.findAll("a")[1].string.strip() @@ -348,7 +349,7 @@ if __name__ == '__main__': #parser = AcolnetParser("Barnet", "Barnet", "http://194.75.183.100/planning-cases/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = AcolnetParser("Basingstoke", "Basingstoke", "http://planning.basingstoke.gov.uk/DCOnline2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") #parser = BassetlawParser("Bassetlaw", "Bassetlaw", "http://www.bassetlaw.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch") - parser = AcolnetParser("Bolton", "Bolton", "http://www.planning.bolton.gov.uk/DCOnlineV2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch") +# 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") @@ -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 = BoltonLikeParser("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")