瀏覽代碼

adding Durham, although its database appears to be empty...

import/raw
duncan.parkes 17 年之前
父節點
當前提交
1a6a6e8875
共有 2 個檔案被更改,包括 31 行新增1 行删除
  1. +29
    -0
      trunk/cgi-bin/Durham.cgi
  2. +2
    -1
      trunk/python_scrapers/PublicAccessSites.csv

+ 29
- 0
trunk/cgi-bin/Durham.cgi 查看文件

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

# This is the parser for Durham 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 = "Durham City Council"
authority_short_name = "Durham"
base_url = "http://publicaccess.durhamcity.gov.uk/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

+ 2
- 1
trunk/python_scrapers/PublicAccessSites.csv 查看文件

@@ -79,4 +79,5 @@
"West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Bolsover District Council", "Bolsover", "http://217.158.161.181/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Doncaster Metropolitan Borough Council", "Doncaster", "http://maps.doncaster.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Durham City Council", "Durham", "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/", "PublicAccess", "PublicAccessParser"

Loading…
取消
儲存