Pārlūkot izejas kodu

adding gravesham

import/raw
duncan.parkes pirms 17 gadiem
vecāks
revīzija
8cfdc381d4
2 mainītis faili ar 31 papildinājumiem un 1 dzēšanām
  1. +29
    -0
      trunk/cgi-bin/Gravesham.cgi
  2. +2
    -1
      trunk/python_scrapers/PublicAccessSites.csv

+ 29
- 0
trunk/cgi-bin/Gravesham.cgi Parādīt failu

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

# This is the parser for Gravesham 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 = "Gravesham Borough Council"
authority_short_name = "Gravesham"
base_url = "http://195.102.67.4/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

+ 2
- 1
trunk/python_scrapers/PublicAccessSites.csv Parādīt failu

@@ -68,4 +68,5 @@
"Ealing Council", "Ealing", "http://www.pam.ealing.gov.uk/", "ApplicationSearchServletParser", "EalingSearchParser"
"Denbighshire County Council", "Denbighshire", "http://planning.denbighshire.gov.uk/", "ApplicationSearchServletParser", "DenbighshireSearchParser"
"Wear Valley District Council", "Wear Valley", "http://planning.wearvalley.gov.uk/", "ApplicationSearchServletParser", "WearValleySearchParser"
"Chorley Borough Council", "Chorley", "http://planning.chorley.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"
"Chorley Borough Council", "Chorley", "http://planning.chorley.gov.uk/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"
"Gravesham Borough Council", "Gravesham", "http://195.102.67.4/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"

Notiek ielāde…
Atcelt
Saglabāt