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

adding stirling

import/raw
duncan.parkes преди 17 години
родител
ревизия
0e834a010c
променени са 2 файла, в които са добавени 32 реда и са изтрити 1 реда
  1. +29
    -0
      trunk/cgi-bin/Stirling.cgi
  2. +3
    -1
      trunk/python_scrapers/PublicAccessSites.csv

+ 29
- 0
trunk/cgi-bin/Stirling.cgi Целия файл

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

# This is the parser for Stirling 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 = "Stirling Council"
authority_short_name = "Stirling"
base_url = "http://planpub.stirling.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
trunk/python_scrapers/PublicAccessSites.csv Целия файл

@@ -72,4 +72,6 @@
"Gravesham Borough Council", "Gravesham", "http://195.102.67.4/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser"
"London Borough Of Newham", "Newham", "http://pacaps.newham.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"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"
"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"

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