From a243531572c83bf73c3349d31db7645e9fcdb2b6 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Wed, 23 Apr 2008 08:14:11 +0000 Subject: [PATCH] Fix Lincoln parser. --- python_scrapers/PlanningExplorer.py | 7 ++++--- python_scrapers/RutlandLike.py | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python_scrapers/PlanningExplorer.py b/python_scrapers/PlanningExplorer.py index 0249890..64af940 100644 --- a/python_scrapers/PlanningExplorer.py +++ b/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/python_scrapers/RutlandLike.py b/python_scrapers/RutlandLike.py index 532e12f..b8b4a00 100644 --- a/python_scrapers/RutlandLike.py +++ b/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)