瀏覽代碼

Fix Canterbury - just a new url.

import/raw
duncan.parkes@gmail.com 15 年之前
父節點
當前提交
cafb412b56
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. +1
    -1
      trunk/SitesToGenerate.csv
  2. +3
    -2
      trunk/python_scrapers/AcolnetParser.py

+ 1
- 1
trunk/SitesToGenerate.csv 查看文件

@@ -50,7 +50,7 @@
"Cambridgeshire County Council","Cambridgeshire",,,,,,"http://planapps2.cambridgeshire.gov.uk/DCWebPages/AcolNetCGI.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser",
"London Borough of Camden","Camden",,,,,,"http://planningrecords.camden.gov.uk/","PlanningExplorer","CamdenParser",
"Cannock Chase District Council","Cannock Chase",,,,,,"http://planning.cannockchasedc.com/swiftlg/apas/run/wphappcriteria.display","SwiftLG","SwiftLGParser",
"Canterbury City Council","Canterbury",,,,,,"http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","CanterburyParser",
"Canterbury City Council","Canterbury",,,,,,"http://www2.canterbury.gov.uk/planning/acolnetcgi.cgi?ACTION=UNWRAP&RIPNAME=Root.PgeSearch","AcolnetParser","CanterburyParser",
"Caradon District Council","Caradon",,,,,,"http://publicaccess.caradon.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser",
"Carlisle City Council","Carlisle",,,,,,"http://planning.carlisle.gov.uk/PlanData/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser",
"Carmarthenshire County Council","Carmarthenshire",,,,,,,"Carmarthenshire","CarmarthenshireParser",


+ 3
- 2
trunk/python_scrapers/AcolnetParser.py 查看文件

@@ -219,6 +219,7 @@ class BlackpoolParser(AcolnetParser):

class CanterburyParser(AcolnetParser):
"""Here the apps are one row each in a big table."""
comments_email_address = "development.control@canterbury.gov.uk"

def _getResultsSections(self, soup):
return soup.find("table").findAll("tr")[1:]
@@ -351,7 +352,7 @@ if __name__ == '__main__':
# parser = AcolnetParser("Bolton", "Bolton", "http://www.planning.bolton.gov.uk/DCOnlineV2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = BridgnorthParser("Bridgnorth", "Bridgnorth", "http://www2.bridgnorth-dc.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch")
#parser = AcolnetParser("Bury", "Bury", "http://e-planning.bury.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = CanterburyParser("Canterbury", "Canterbury", "http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
parser = CanterburyParser("Canterbury", "Canterbury", "http://www2.canterbury.gov.uk/planning/acolnetcgi.cgi?ACTION=UNWRAP&RIPNAME=Root.PgeSearch")
# parser = AcolnetParser("Carlisle", "Carlisle", "http://planning.carlisle.gov.uk/PlanData/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("Croydon", "Croydon", "http://planning.croydon.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("Derby", "Derby", "http://eplanning.derby.gov.uk/acolnet/planningpages02/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
@@ -364,7 +365,7 @@ if __name__ == '__main__':
#parser = BoltonLikeParser("Hertsmere", "Hertsmere", "http://www2.hertsmere.gov.uk/ACOLNET/DCOnline//acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = LewishamParser("Lewisham", "Lewisham", "http://acolnet.lewisham.gov.uk/lewis-xslpagesdc/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.PgeSearch")
#parser = AcolnetParser("Mid Suffolk", "Mid Suffolk", "http://planning.midsuffolk.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
parser = AcolnetParser("New Forest District Council", "New Forest DC", "http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("New Forest District Council", "New Forest DC", "http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("New Forest National Park Authority", "New Forest NPA", "http://web01.newforestnpa.gov.uk/Pages3/AcolNetCGI.dcgov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("North Hertfordshire", "North Herts", "http://www.north-herts.gov.uk/dcdataonline/Pages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch")
#parser = AcolnetParser("North Wiltshire", "North Wilts", "http://planning.northwilts.gov.uk/DCOnline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")


Loading…
取消
儲存