Browse Source

add stratford, teignbridge and west berks

master
duncan.parkes 17 years ago
parent
commit
8c36af09d9
4 changed files with 90 additions and 1 deletions
  1. +29
    -0
      cgi-bin/Stratford.cgi
  2. +29
    -0
      cgi-bin/Teignbridge.cgi
  3. +29
    -0
      cgi-bin/West Berkshire.cgi
  4. +3
    -1
      python_scrapers/PublicAccessSites.csv

+ 29
- 0
cgi-bin/Stratford.cgi View File

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

# This is the parser for Stratford-on-Avon 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 = "Stratford-on-Avon District Council"
authority_short_name = "Stratford"
base_url = "http://217.33.198.119/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

+ 29
- 0
cgi-bin/Teignbridge.cgi View File

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

# This is the parser for Teignbridge 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 = "Teignbridge District Council"
authority_short_name = "Teignbridge"
base_url = "http://213.152.63.161/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

+ 29
- 0
cgi-bin/West Berkshire.cgi View File

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

# This is the parser for West Berkshire 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 = "West Berkshire Council"
authority_short_name = "West Berkshire"
base_url = "http://ww2.westberks.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

+ 3
- 1
python_scrapers/PublicAccessSites.csv View File

@@ -74,4 +74,6 @@
"North West Leicestershire District Council", "NW Leicestershire", "http://paccess.nwleics.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"
"Redditch Borough Council", "Redditch", "http://access.redditchbc.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Stirling Council", "Stirling", "http://planpub.stirling.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Stratford-on-Avon District Council", "Stratford", "http://217.33.198.119/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Stratford-on-Avon District Council", "Stratford", "http://217.33.198.119/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Teignbridge District Council", "Teignbridge", "http://213.152.63.161/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"

Loading…
Cancel
Save