From ad26cd62f01bdbd0cc2d4d7507771c15e6fdeb2f Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 23 Apr 2008 10:49:02 +0000 Subject: [PATCH] Fix Kennet, which now has an interface like Broadland. --- python_scrapers/PlanningExplorer.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python_scrapers/PlanningExplorer.py b/python_scrapers/PlanningExplorer.py index 64af940..08bc9fc 100644 --- a/python_scrapers/PlanningExplorer.py +++ b/python_scrapers/PlanningExplorer.py @@ -425,10 +425,8 @@ class HackneyParser(PlanningExplorerParser): return post_data -class KennetParser(PlanningExplorerParser): - use_firefox_user_agent = True - - address_td_no = 3 +class KennetParser(BroadlandLike, PlanningExplorerParser): + comments_path = "Northgate/PlanningExplorer/PLComments.aspx?pk=%s" class LincolnParser(PlanningExplorerParser): use_firefox_user_agent = True @@ -608,8 +606,8 @@ if __name__ == '__main__': #parser = EppingForestParser("Epping Forest District Council", "Epping Forest", "http://plan1.eppingforestdc.gov.uk/") #parser = ForestHeathParser("Forest Heath District Council", "Forest Heath", "http://195.171.177.73/") #parser = HackneyParser("London Borough of Hackney", "Hackney", "http://www.hackney.gov.uk/servapps/") - #parser = KennetParser("Kennet District Council", "Kennet", "http://mvm-planning.kennet.gov.uk/") - parser = LincolnParser("Lincoln City Council", "Lincoln", "http://online.lincoln.gov.uk/") + parser = KennetParser("Kennet District Council", "Kennet", "http://mvm-planning.kennet.gov.uk/") + #parser = LincolnParser("Lincoln City Council", "Lincoln", "http://online.lincoln.gov.uk/") #parser = LiverpoolParser("Liverpool City Council", "Liverpool", "http://www.liverpool.gov.uk/") #parser = ShrewsburyParser("Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/") #parser = SouthNorfolkParser("South Norfolk Council", "South Norfolk", "http://planning.south-norfolk.gov.uk/")