소스 검색

Add Scraper for Lewes (which now has PublicAccess).

import/raw
duncan.parkes 16 년 전
부모
커밋
9909d744e3
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      trunk/python_scrapers/Shropshire.py
  2. +1
    -0
      trunk/python_scrapers/SitesToGenerate.csv

+ 4
- 3
trunk/python_scrapers/Shropshire.py 파일 보기

@@ -147,13 +147,14 @@ class SouthNorthamptonshireParser(ShropshireParser):
return soup.find("div", {"class": "div-content-class"}).findAll("a")

if __name__ == '__main__':
parser = ShropshireParser("Shropshire County Council", "Shropshire", "http://planning.shropshire.gov.uk/PlanAppList.asp")
print parser.getResults(6,6,2008)
# parser = ShropshireParser("Shropshire County Council", "Shropshire", "http://planning.shropshire.gov.uk/PlanAppList.asp")
# print parser.getResults(6,6,2008)
# parser = NorthYorkshireParser("North Yorkshire County Council", "North Yorkshire", "https://onlineplanningregister.northyorks.gov.uk/Online%20Register/PlanAppList.asp")
# print parser.getResults(10,6,2008)
# parser = SouthNorthamptonshireParser("South Northamptonshire Council", "South Northamptonshire", "http://snc.planning-register.co.uk/PlanAppList.asp")
# print parser.getResults(5,6,2008)

parser = ShropshireParser("Purbeck District Council", "Purbeck", "http://www.purbeck.gov.uk/planning/PlanAppList.asp")
print parser.getResults(5,6,2008)

# TODO



+ 1
- 0
trunk/python_scrapers/SitesToGenerate.csv 파일 보기

@@ -234,3 +234,4 @@
"Shropshire County Council", "Shropshire", "http://planning.shropshire.gov.uk/PlanAppList.asp", "Shropshire", "ShropshireParser"
"North Yorkshire County Council", "North Yorkshire", "https://onlineplanningregister.northyorks.gov.uk/Online%20Register/PlanAppList.asp", "Shropshire", "NorthYorkshireParser"
"South Northamptonshire Council", "South Northamptonshire", "http://snc.planning-register.co.uk/PlanAppList.asp", "Shropshire", "SouthNorthamptonshireParser"
"Lewes District Council", "Lewes", "http://planning.lewes.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"

불러오는 중...
취소
저장