Преглед на файлове

Add Dorset CC scraper

import/raw
duncan.parkes преди 17 години
родител
ревизия
5e8781a7a9
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. +3
    -2
      trunk/python_scrapers/AtriumePlanning.py
  2. +1
    -0
      trunk/python_scrapers/SitesToGenerate.csv

+ 3
- 2
trunk/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)

+ 1
- 0
trunk/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"

Зареждане…
Отказ
Запис