From a3d4b81b43cf2a9963bcd7fef9babc2fe86a6653 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 23 Apr 2008 08:14:11 +0000 Subject: [PATCH] Fix Lincoln parser. --- trunk/python_scrapers/PlanningExplorer.py | 7 ++++--- trunk/python_scrapers/RutlandLike.py | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/trunk/python_scrapers/PlanningExplorer.py b/trunk/python_scrapers/PlanningExplorer.py index 0249890..64af940 100644 --- a/trunk/python_scrapers/PlanningExplorer.py +++ b/trunk/python_scrapers/PlanningExplorer.py @@ -432,6 +432,7 @@ class KennetParser(PlanningExplorerParser): class LincolnParser(PlanningExplorerParser): use_firefox_user_agent = True + results_table_attrs = {"class": "resultstable"} class LiverpoolParser(PlanningExplorerParser): comments_email_address = "planningandbuildingcontrol@liverpool.gov.uk" @@ -608,7 +609,7 @@ if __name__ == '__main__': #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 = 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/") @@ -619,8 +620,8 @@ if __name__ == '__main__': #parser = TamworthParser("Tamworth Borough Council", "Tamworth", "http://80.1.64.77/") #parser = TraffordParser("Trafford Council", "Trafford", "http://planning.trafford.gov.uk/") #parser = WestOxfordshireParser("West Oxfordshire District Council", "West Oxfordshire", "http://planning.westoxon.gov.uk/") - parser = WalthamForestParser("Waltham Forest", "Waltham Forest", "http://planning.walthamforest.gov.uk/") - print parser.getResults(22, 1, 2008) + #parser = WalthamForestParser("Waltham Forest", "Waltham Forest", "http://planning.walthamforest.gov.uk/") + print parser.getResults(18, 4, 2008) # To Do diff --git a/trunk/python_scrapers/RutlandLike.py b/trunk/python_scrapers/RutlandLike.py index 532e12f..b8b4a00 100644 --- a/trunk/python_scrapers/RutlandLike.py +++ b/trunk/python_scrapers/RutlandLike.py @@ -91,7 +91,6 @@ class RutlandLikeParser: if __name__ == '__main__': - #parser = RutlandLikeParser("Rutland long", "Rutland", "http://www.meltononline.co.uk/planning/searchparam.asp") - parser = RutlandLikeParser("Melton Borough Council", "Melton", "http://www.meltononline.co.uk/planning/searchparam.asp") + parser = RutlandLikeParser("Rutland long", "Rutland", "http://www.meltononline.co.uk/planning/searchparam.asp") print parser.getResults(3,2,2008)