From 019b51610ec91ae1b5b84e107e4e8f7f1381e2f4 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Mon, 10 Dec 2007 12:20:36 +0000 Subject: [PATCH] Add Dorset CC scraper --- python_scrapers/AtriumePlanning.py | 5 +++-- python_scrapers/SitesToGenerate.csv | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python_scrapers/AtriumePlanning.py b/python_scrapers/AtriumePlanning.py index 62e081b..6997107 100644 --- a/python_scrapers/AtriumePlanning.py +++ b/python_scrapers/AtriumePlanning.py @@ -3,7 +3,6 @@ import urllib import urlparse import datetime -#import re from BeautifulSoup import BeautifulSoup @@ -109,7 +108,7 @@ class AtriumePlanningParser: return self.getResultsByDayMonthYear(int(day), int(month), int(year)).displayXML() -#if __name__ == '__main__': +if __name__ == '__main__': # cumbria_parser = AtriumePlanningParser("Cumbria County Council", "Cumbria", "http://217.114.50.149:7778/ePlanningOPS/loadResults.do") # print cumbria_parser.getResults(22,11,2007) @@ -117,3 +116,5 @@ class AtriumePlanningParser: # print cumbria_parser.getResults(22,11,2007) + parser = AtriumePlanningParser("Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do") + print parser.getResults(13,11,2007) diff --git a/python_scrapers/SitesToGenerate.csv b/python_scrapers/SitesToGenerate.csv index 69500aa..56188eb 100644 --- a/python_scrapers/SitesToGenerate.csv +++ b/python_scrapers/SitesToGenerate.csv @@ -182,3 +182,4 @@ "Boston Borough Council", "Boston", "http://195.224.121.199/swiftlg/apas/run/", "SwiftLG", "SwiftLGParser" "Swansea City and County", "Swansea", "http://www2.swansea.gov.uk/", "PlanningExplorer", "SwanseaParser" "Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/", "PlanningExplorer", "ShrewsburyParser" +"Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser"