Browse Source

Start implementing Merton Parser. There are going to be a few commits for a bit, as this doesn't work properly from

my machine...
import/raw
duncan.parkes 17 years ago
parent
commit
2be99c221e
3 changed files with 6 additions and 2 deletions
  1. +4
    -1
      trunk/python_scrapers/PlanningExplorer.py
  2. +1
    -1
      trunk/python_scrapers/PublicAccess.py
  3. +1
    -0
      trunk/python_scrapers/SitesToGenerate.csv

+ 4
- 1
trunk/python_scrapers/PlanningExplorer.py View File

@@ -473,6 +473,9 @@ class LiverpoolParser(PlanningExplorerParser):

# FIXME - Merton needs to be done here when it is back up.

class MertonParser(PlanningExplorerParser):
use_firefox_user_agent = True
class ShrewsburyParser(PlanningExplorerParser):
use_firefox_user_agent = True

@@ -545,7 +548,7 @@ if __name__ == '__main__':
#parser = BlackburnParser("Blackburn With Darwen Borough Council", "Blackburn", "http://195.8.175.6/")
#parser = BroadlandParser("Broadland Council", "Broadland", "http://www.broadland.gov.uk/")
parser = CamdenParser("London Borough of Camden", "Camden", "http://planningrecords.camden.gov.uk/")
#parser = CamdenParser("London Borough of Camden", "Camden", "http://planningrecords.camden.gov.uk/")
#parser = CharnwoodParser("Charnwood Borough Council", "Charnwood", "http://portal.charnwoodbc.gov.uk/")
#parser = CreweParser("Crewe and Nantwich Borough Council", "Crewe and Nantwich", "http://portal.crewe-nantwich.gov.uk/")
#parser = EastStaffsParser("East Staffordshire Borough Council", "East Staffs", "http://www2.eaststaffsbc.gov.uk/")


+ 1
- 1
trunk/python_scrapers/PublicAccess.py View File

@@ -354,6 +354,6 @@ if __name__ == '__main__':
month = 11
year = 2007

parser = PublicAccessParser("Chester-le-Street", "Chester-le-Street", "http://planning.chester-le-street.gov.uk/publicaccess/tdc/", True)
parser = PublicAccessParser("East Northants", "East Northants", "http://publicaccesssrv.east-northamptonshire.gov.uk/PublicAccess/tdc/", True)
print parser.getResults(day, month, year)

+ 1
- 0
trunk/python_scrapers/SitesToGenerate.csv View File

@@ -188,3 +188,4 @@
"Mid Suffolk District Council", "Mid Suffolk", "http://planning.midsuffolk.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "AcolnetParser"
"London Borough of Southwark", "Southwark", "http://planningonline.southwarksites.com/planningonline2/AcolNetCGI.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "SouthwarkParser"
"Canterbury City Council", "Canterbury", "http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "CanterburyParser"
"London Borough of Merton", "Merton", "http://planning.merton.gov.uk/MVM/Online/PL/GeneralSearch.aspx", "PlanningExplorer", "MertonParser"

Loading…
Cancel
Save