Преглед на файлове

add torbay and peterborough

master
duncan.parkes преди 17 години
родител
ревизия
5515eaf165
променени са 6 файла, в които са добавени 96 реда и са изтрити 128 реда
  1. +31
    -0
      CGI/Peterborough.cgi
  2. +0
    -64
      CGI/PublicAccess.py
  3. +31
    -0
      CGI/South Ribble.cgi
  4. +31
    -0
      CGI/Torbay.cgi
  5. +0
    -64
      python_scrapers/PublicAccess.py
  6. +3
    -0
      python_scrapers/PublicAccessSites.csv

+ 31
- 0
CGI/Peterborough.cgi Целия файл

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

# This is the parser for Peterborough City 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 = "Peterborough City Council"
authority_short_name = "Peterborough"
base_url = "http://194.72.246.15/publicaccess/dc/"

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

+ 0
- 64
CGI/PublicAccess.py Целия файл

@@ -340,67 +340,3 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser):
self.postcode = value


# These still don't work:

# Perthshire
#http://193.63.61.22/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Perth and Kinross Council", "Perthshire", "http://193.63.61.22/publicaccess/tdc/"

# These ones give sensible results in a browser,
# but are always empty for my script...
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/"
#"Newcastle City Council", "Newcastle", "http://gispublic.newcastle.gov.uk/publicaccess/dc/"
#"City of Durham Council", "Durham", "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/"
#"Selby District Council", "Selby", "http://publicaccess.selby.gov.uk/publicaccess/dc/"


# 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.

# Newham
# doesn't seem to work currently
# http://pacaps.newham.gov.uk/publicaccess/

# Stratford
# http://217.33.198.119/publicaccess/default.aspx
# Doesn't seem to work currently

# Watford
#http://ww3.watford.gov.uk/publicaccess/system_error.aspx?aspxerrorpath=/publicaccess/tdc/tdc_home.aspx
# Doesn't seem to work currently

# Teignbridge
#http://213.152.63.161/publicaccess/tdc/tdc_home.aspx
# Doesn't seem to work currently

# Gravesham seems to be broken
#"Gravesham Borough Council", "Gravesham", "http://195.102.67.4/PublicAccess/tdc/"

# Manchester
# Missing the main menu on the left.
#http://www.publicaccess.manchester.gov.uk/publicaccess/tdc/tdc_home.aspx

#Bracknell Forest - has an error
#https://my.bracknell-forest.gov.uk/publicaccess/tdc/tdc_home.aspx

# Redditch
# Gives an error
# http://access.redditchbc.gov.uk/publicaccess/tdc/tdc_home.aspx

# Stirling
# Gives an error
#http://planpub.stirling.gov.uk/publicaccess/tdc/tdc_home.aspx

# These use https:

# Chiltern
#https://isa.chiltern.gov.uk/publicaccess/tdc/tdc_home.aspx
# Hinckley-Bosworth
#https://cx.hinckley-bosworth.gov.uk/PublicAccess/dc/DcApplication/application_searchform.aspx

+ 31
- 0
CGI/South Ribble.cgi Целия файл

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

# This is the parser for South Ribble 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 = "South Ribble Borough Council"
authority_short_name = "South Ribble"
base_url = "http://publicaccess.southribble.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

+ 31
- 0
CGI/Torbay.cgi Целия файл

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

# This is the parser for Torbay 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 = "Torbay Council"
authority_short_name = "Torbay"
base_url = "http://www.torbay.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

+ 0
- 64
python_scrapers/PublicAccess.py Целия файл

@@ -340,67 +340,3 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser):
self.postcode = value


# These still don't work:

# Perthshire
#http://193.63.61.22/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Perth and Kinross Council", "Perthshire", "http://193.63.61.22/publicaccess/tdc/"

# These ones give sensible results in a browser,
# but are always empty for my script...
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/"
#"Newcastle City Council", "Newcastle", "http://gispublic.newcastle.gov.uk/publicaccess/dc/"
#"City of Durham Council", "Durham", "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/"
#"Selby District Council", "Selby", "http://publicaccess.selby.gov.uk/publicaccess/dc/"


# 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.

# Newham
# doesn't seem to work currently
# http://pacaps.newham.gov.uk/publicaccess/

# Stratford
# http://217.33.198.119/publicaccess/default.aspx
# Doesn't seem to work currently

# Watford
#http://ww3.watford.gov.uk/publicaccess/system_error.aspx?aspxerrorpath=/publicaccess/tdc/tdc_home.aspx
# Doesn't seem to work currently

# Teignbridge
#http://213.152.63.161/publicaccess/tdc/tdc_home.aspx
# Doesn't seem to work currently

# Gravesham seems to be broken
#"Gravesham Borough Council", "Gravesham", "http://195.102.67.4/PublicAccess/tdc/"

# Manchester
# Missing the main menu on the left.
#http://www.publicaccess.manchester.gov.uk/publicaccess/tdc/tdc_home.aspx

#Bracknell Forest - has an error
#https://my.bracknell-forest.gov.uk/publicaccess/tdc/tdc_home.aspx

# Redditch
# Gives an error
# http://access.redditchbc.gov.uk/publicaccess/tdc/tdc_home.aspx

# Stirling
# Gives an error
#http://planpub.stirling.gov.uk/publicaccess/tdc/tdc_home.aspx

# These use https:

# Chiltern
#https://isa.chiltern.gov.uk/publicaccess/tdc/tdc_home.aspx
# Hinckley-Bosworth
#https://cx.hinckley-bosworth.gov.uk/PublicAccess/dc/DcApplication/application_searchform.aspx

+ 3
- 0
python_scrapers/PublicAccessSites.csv Целия файл

@@ -48,3 +48,6 @@
"South Bucks District Council", "South Bucks", "http://sbdc-paweb.southbucks.gov.uk/publicaccess/tdc/"
"Malvern Hills District Council", "Malvern Hills", "http://public.malvernhills.gov.uk/publicaccess/tdc/"
"West Lancashire District Council", "West Lancashire", "http://publicaccess.westlancsdc.gov.uk/PublicAccess/tdc/"
"Torbay Council", "Torbay", "http://www.torbay.gov.uk/publicaccess/tdc/"
"South Ribble Borough Council", "South Ribble", "http://publicaccess.southribble.gov.uk/publicaccess/tdc/"
"Peterborough City Council", "Peterborough", "http://194.72.246.15/publicaccess/dc/"

Зареждане…
Отказ
Запис