Quellcode durchsuchen

adding waveney

master
duncan.parkes vor 17 Jahren
Ursprung
Commit
91dc6ca8e1
6 geänderte Dateien mit 84 neuen und 4 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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

Laden…
Abbrechen
Speichern