Browse Source

adding waveney

master
duncan.parkes 17 years ago
parent
commit
91dc6ca8e1
6 changed files with 84 additions and 4 deletions
  1. +31
    -0
      CGI/Doncaster.cgi
  2. +9
    -0
      CGI/PublicAccess.py
  3. +31
    -0
      CGI/Waveney.cgi
  4. +9
    -0
      python_scrapers/PublicAccess.py
  5. +2
    -2
      python_scrapers/PublicAccessSites.csv
  6. +2
    -2
      python_scrapers/createCGI.sh

+ 31
- 0
CGI/Doncaster.cgi View File

@@ -0,0 +1,31 @@
#!/usr/bin/python

# This is the parser for Doncaster Metropolitan Borough Council.
# it is generated from the file CGITemplate

import cgi
import cgitb
#cgitb.enable(display=0, logdir="/tmp")


form = cgi.FieldStorage()
day = form.getfirst('day')
month = form.getfirst('month')
year = form.getfirst('year')


authority_name = "Doncaster Metropolitan Borough Council"
authority_short_name = "Doncaster"
base_url = "http://maps.doncaster.gov.uk/publicaccess/tdc/"

import PublicAccess

parser = PublicAccess.PublicAccessParser(authority_name,
authority_short_name,
base_url)

xml = parser.getResults(day, month, year)

print "Content-Type: text/xml" # XML is following
print
print xml # print the xml

+ 9
- 0
CGI/PublicAccess.py View File

@@ -350,6 +350,15 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser):
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/"

# Bromley
# http://83.244.199.114/publicaccess/
# looks like it might be a PublicAccess site, but limits users to IE.
# Not fooled by setting the browser identifer in konqueror...

# West Berkshire
#http://ww2.westberks.gov.uk/publicaccess/tdc/tdc_home.aspx
# Displays an error message.

# These use https:

# Chiltern


+ 31
- 0
CGI/Waveney.cgi View File

@@ -0,0 +1,31 @@
#!/usr/bin/python

# This is the parser for Waveney District Council.
# it is generated from the file CGITemplate

import cgi
import cgitb
#cgitb.enable(display=0, logdir="/tmp")


form = cgi.FieldStorage()
day = form.getfirst('day')
month = form.getfirst('month')
year = form.getfirst('year')


authority_name = "Waveney District Council"
authority_short_name = "Waveney"
base_url = "http://publicaccess.waveney.gov.uk/PublicAccess/tdc/"

import PublicAccess

parser = PublicAccess.PublicAccessParser(authority_name,
authority_short_name,
base_url)

xml = parser.getResults(day, month, year)

print "Content-Type: text/xml" # XML is following
print
print xml # print the xml

+ 9
- 0
python_scrapers/PublicAccess.py View File

@@ -350,6 +350,15 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser):
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/"

# Bromley
# http://83.244.199.114/publicaccess/
# looks like it might be a PublicAccess site, but limits users to IE.
# Not fooled by setting the browser identifer in konqueror...

# West Berkshire
#http://ww2.westberks.gov.uk/publicaccess/tdc/tdc_home.aspx
# Displays an error message.

# These use https:

# Chiltern


+ 2
- 2
python_scrapers/PublicAccessSites.csv View File

@@ -34,5 +34,5 @@
"Kerrier District Council", "Kerrier", "http://publicaccess.kerrier.gov.uk/publicaccess/tdc/"
"Oswestry Borough Council", "Oswestry", "http://193.114.205.78/PublicAccess/tdc/"
"Stockton-On-Tees Borough Council", "Stockton-On-Tees", "http://www.developmentcontrol.stockton.gov.uk/publicaccess/tdc/"
"Doncaster Metropolitan Borough Council", "Doncaster", "http://maps.doncaster.gov.uk/publicaccess/tdc/"
"Waveney District Council", "Waveney", "http://publicaccess.waveney.gov.uk/PublicAccess/tdc/"

+ 2
- 2
python_scrapers/createCGI.sh View File

@@ -8,7 +8,7 @@ python generateCGIScripts.py

svn add ../CGI/*

echo Committing changes to svn
(cd ../CGI ; svn commit -m "Removing and regenerating CGI directory")
#echo Committing changes to svn
#(cd ../CGI ; svn commit -m "Removing and regenerating CGI directory")

echo Done

Loading…
Cancel
Save