Browse Source

Fix New Forest NP scraper. New url slightly different page.

master
duncan.parkes 15 years ago
parent
commit
0ba729df71
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      SitesToGenerate.csv
  2. +5
    -5
      python_scrapers/AcolnetParser.py

+ 1
- 1
SitesToGenerate.csv View File

@@ -194,7 +194,7 @@ full_name,short_name,planning_email,feed_url,external,disabled,notes,base_url,py
"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 National Park","New Forest NP",,,,,,http://web01.newforestnpa.gov.uk/planningpages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch,AcolnetParser,BoltonLikeParser,
"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},,,,,,,
"North East Derbyshire District Council","North East Derbyshire",,,,,,http://planapps-online.ne-derbyshire.gov.uk/publicaccess/tdc/,PublicAccess,PublicAccessParser,


+ 5
- 5
python_scrapers/AcolnetParser.py View File

@@ -340,12 +340,12 @@ class HarlowParser(AcolnetParser):
return self._current_application.info_url.replace("PgeResultDetail", "PgeCommentNeighbourForm&hasreference=no")

if __name__ == '__main__':
day = 1
month = 8
year = 2008
day = 27
month = 3
year = 2009

#parser = AcolnetParser("Babergh", "Babergh", "http://planning.babergh.gov.uk/dcdatav2//acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
parser = AcolnetParser("Barnet", "Barnet", "http://194.75.183.100/planning-cases/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
#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")
@@ -365,7 +365,7 @@ if __name__ == '__main__':
#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 = BoltonLikeParser("New Forest National Park Authority", "New Forest NPA", "http://web01.newforestnpa.gov.uk/planningpages/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")
#parser = OldhamParser("Oldham", "Oldham", "http://planning.oldham.gov.uk/planning/AcolNetCGI.gov?ACTION=UNWRAP&Root=PgeSearch")


Loading…
Cancel
Save