Przeglądaj źródła

Fix New Forest District Council.

master
duncan.parkes 15 lat temu
rodzic
commit
410f06685d
2 zmienionych plików z 4 dodań i 3 usunięć
  1. +1
    -1
      SitesToGenerate.csv
  2. +3
    -2
      python_scrapers/AcolnetParser.py

+ 1
- 1
SitesToGenerate.csv Wyświetl plik

@@ -193,7 +193,7 @@
"Newcastle City Council","Newcastle",,,,,,"http://gisccs013.newcastle.gov.uk/PublicAccess/tdc/","PublicAccess","PublicAccessParser",
"Newcastle-under-Lyme Borough Council","Newcastle-under-Lyme",,,,,,"http://publicaccess.newcastle-staffs.gov.uk/PublicAccess/tdc/","PublicAccess","PublicAccessParser",
"Newport City Council","Newport",,"/cgi-bin/Newport.cgi?day={day}&month={month}&year={year}",,,,,,,
"New Forest District Council","New Forest DC",,,,,,"http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","BoltonLikeParser",
"New Forest District Council","New Forest DC",,,,,,"http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser",
"New Forest National Park","New Forest NP",,,,,,"http://web01.newforestnpa.gov.uk/Pages3/AcolNetCGI.dcgov?ACTION=UNWRAP&RIPNAME=Root.pgesearch","AcolnetParser","AcolnetParser",
"London Borough Of Newham","Newham",,,,,,"http://pacaps.newham.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser",
"North Ayrshire Council","North Ayrshire",,"/cgi-bin/NorthAyrshire.cgi?day={day}&month={month}&year={year}",,,,,,,


+ 3
- 2
python_scrapers/AcolnetParser.py Wyświetl plik

@@ -316,6 +316,7 @@ class SurreyHeathParser(AcolnetParser):
class BoltonLikeParser(AcolnetParser):
"""Note that Bolton has ceased to be BoltonLike with its latest change of url."""
def _getCouncilReference(self, app_table):
import pdb;pdb.set_trace()
return app_table.findAll("a")[1].string.strip()
@@ -348,7 +349,7 @@ if __name__ == '__main__':
#parser = AcolnetParser("Barnet", "Barnet", "http://194.75.183.100/planning-cases/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = AcolnetParser("Basingstoke", "Basingstoke", "http://planning.basingstoke.gov.uk/DCOnline2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#parser = BassetlawParser("Bassetlaw", "Bassetlaw", "http://www.bassetlaw.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
parser = AcolnetParser("Bolton", "Bolton", "http://www.planning.bolton.gov.uk/DCOnlineV2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
# 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")
@@ -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 = BoltonLikeParser("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")


Ładowanie…
Anuluj
Zapisz