浏览代码

add some debug

import/raw
duncan.parkes 17 年前
父节点
当前提交
0f5a0ce689
共有 100 个文件被更改,包括 450 次插入4 次删除
  1. +54
    -4
      trunk/cgi-bin/AcolnetParser.py
  2. +4
    -0
      trunk/cgi-bin/Allerdale.cgi
  3. +4
    -0
      trunk/cgi-bin/Alnwick.cgi
  4. +4
    -0
      trunk/cgi-bin/Angus.cgi
  5. +4
    -0
      trunk/cgi-bin/Aylesbury Vale.cgi
  6. +4
    -0
      trunk/cgi-bin/Babergh.cgi
  7. +4
    -0
      trunk/cgi-bin/Barrow.cgi
  8. +4
    -0
      trunk/cgi-bin/Basildon.cgi
  9. +4
    -0
      trunk/cgi-bin/Basingstoke and Deane.cgi
  10. +4
    -0
      trunk/cgi-bin/Bassetlaw.cgi
  11. +4
    -0
      trunk/cgi-bin/Bath.cgi
  12. +4
    -0
      trunk/cgi-bin/Bexley.cgi
  13. +4
    -0
      trunk/cgi-bin/Blaby.cgi
  14. +4
    -0
      trunk/cgi-bin/Bolsover.cgi
  15. +4
    -0
      trunk/cgi-bin/Bracknell Forest.cgi
  16. +4
    -0
      trunk/cgi-bin/Bridgnorth.cgi
  17. +4
    -0
      trunk/cgi-bin/Bristol.cgi
  18. +4
    -0
      trunk/cgi-bin/Broads.cgi
  19. +4
    -0
      trunk/cgi-bin/Bromley.cgi
  20. +4
    -0
      trunk/cgi-bin/Buckinghamshire.cgi
  21. +4
    -0
      trunk/cgi-bin/Bury.cgi
  22. +4
    -0
      trunk/cgi-bin/Caradon.cgi
  23. +4
    -0
      trunk/cgi-bin/Carlisle.cgi
  24. +4
    -0
      trunk/cgi-bin/Chelmsford.cgi
  25. +4
    -0
      trunk/cgi-bin/Cherwell.cgi
  26. +4
    -0
      trunk/cgi-bin/Chiltern.cgi
  27. +4
    -0
      trunk/cgi-bin/Chorley.cgi
  28. +4
    -0
      trunk/cgi-bin/City of London.cgi
  29. +4
    -0
      trunk/cgi-bin/Cornwall.cgi
  30. +4
    -0
      trunk/cgi-bin/Coventry.cgi
  31. +4
    -0
      trunk/cgi-bin/Craven.cgi
  32. +4
    -0
      trunk/cgi-bin/Croydon.cgi
  33. +4
    -0
      trunk/cgi-bin/Denbighshire.cgi
  34. +4
    -0
      trunk/cgi-bin/Derby.cgi
  35. +4
    -0
      trunk/cgi-bin/Doncaster.cgi
  36. +4
    -0
      trunk/cgi-bin/Dundee.cgi
  37. +4
    -0
      trunk/cgi-bin/Durham.cgi
  38. +4
    -0
      trunk/cgi-bin/Ealing.cgi
  39. +4
    -0
      trunk/cgi-bin/Easington.cgi
  40. +4
    -0
      trunk/cgi-bin/East Devon.cgi
  41. +4
    -0
      trunk/cgi-bin/East Dorset.cgi
  42. +4
    -0
      trunk/cgi-bin/East Lindsey.cgi
  43. +4
    -0
      trunk/cgi-bin/Eastleigh.cgi
  44. +4
    -0
      trunk/cgi-bin/Eden.cgi
  45. +4
    -0
      trunk/cgi-bin/Edinburgh.cgi
  46. +4
    -0
      trunk/cgi-bin/Epsom and Ewell.cgi
  47. +4
    -0
      trunk/cgi-bin/Fenland.cgi
  48. +4
    -0
      trunk/cgi-bin/Fylde.cgi
  49. +4
    -0
      trunk/cgi-bin/Gateshead.cgi
  50. +4
    -0
      trunk/cgi-bin/Gedling.cgi
  51. +4
    -0
      trunk/cgi-bin/Gloucestershire.cgi
  52. +4
    -0
      trunk/cgi-bin/Gravesham.cgi
  53. +4
    -0
      trunk/cgi-bin/Hambleton.cgi
  54. +4
    -0
      trunk/cgi-bin/Hammersmith and Fulham.cgi
  55. +4
    -0
      trunk/cgi-bin/Haringey.cgi
  56. +4
    -0
      trunk/cgi-bin/Harlow.cgi
  57. +4
    -0
      trunk/cgi-bin/Harrogate.cgi
  58. +4
    -0
      trunk/cgi-bin/Hart.cgi
  59. +4
    -0
      trunk/cgi-bin/Hartlepool.cgi
  60. +4
    -0
      trunk/cgi-bin/Hertsmere.cgi
  61. +4
    -0
      trunk/cgi-bin/High Peak.cgi
  62. +4
    -0
      trunk/cgi-bin/Hinkley and Bosworth.cgi
  63. +4
    -0
      trunk/cgi-bin/Huntingdonshire.cgi
  64. +4
    -0
      trunk/cgi-bin/Kerrier.cgi
  65. +4
    -0
      trunk/cgi-bin/Knowsley.cgi
  66. +4
    -0
      trunk/cgi-bin/Lancaster.cgi
  67. +4
    -0
      trunk/cgi-bin/Lewisham.cgi
  68. +4
    -0
      trunk/cgi-bin/Luton.cgi
  69. +4
    -0
      trunk/cgi-bin/Malvern Hills.cgi
  70. +4
    -0
      trunk/cgi-bin/Manchester.cgi
  71. +4
    -0
      trunk/cgi-bin/Mansfield.cgi
  72. +4
    -0
      trunk/cgi-bin/Mid Devon.cgi
  73. +4
    -0
      trunk/cgi-bin/Milton Keynes.cgi
  74. +4
    -0
      trunk/cgi-bin/Moray.cgi
  75. +4
    -0
      trunk/cgi-bin/NW Leicestershire.cgi
  76. +4
    -0
      trunk/cgi-bin/New Forest DC.cgi
  77. +4
    -0
      trunk/cgi-bin/New Forest NP.cgi
  78. +4
    -0
      trunk/cgi-bin/Newcastle-under-Lyme.cgi
  79. +4
    -0
      trunk/cgi-bin/Newcastle.cgi
  80. +4
    -0
      trunk/cgi-bin/Newham.cgi
  81. +4
    -0
      trunk/cgi-bin/North Hertfordshire.cgi
  82. +4
    -0
      trunk/cgi-bin/North Tyneside.cgi
  83. +4
    -0
      trunk/cgi-bin/North Warwickshire.cgi
  84. +4
    -0
      trunk/cgi-bin/North Wiltshire.cgi
  85. +4
    -0
      trunk/cgi-bin/Northumberland.cgi
  86. +4
    -0
      trunk/cgi-bin/Oadby and Wigston.cgi
  87. +4
    -0
      trunk/cgi-bin/Oldham.cgi
  88. +4
    -0
      trunk/cgi-bin/Oswestry.cgi
  89. +4
    -0
      trunk/cgi-bin/Perthshire.cgi
  90. +4
    -0
      trunk/cgi-bin/Peterborough.cgi
  91. +4
    -0
      trunk/cgi-bin/Portsmouth.cgi
  92. +4
    -0
      trunk/cgi-bin/Redditch.cgi
  93. +4
    -0
      trunk/cgi-bin/Renfrewshire.cgi
  94. +4
    -0
      trunk/cgi-bin/Rushmoor.cgi
  95. +4
    -0
      trunk/cgi-bin/Scarborough.cgi
  96. +4
    -0
      trunk/cgi-bin/Selby.cgi
  97. +4
    -0
      trunk/cgi-bin/Sevenoaks.cgi
  98. +4
    -0
      trunk/cgi-bin/South Bedfordshire.cgi
  99. +4
    -0
      trunk/cgi-bin/South Bucks.cgi
  100. +4
    -0
      trunk/cgi-bin/South Lakeland.cgi

+ 54
- 4
trunk/cgi-bin/AcolnetParser.py 查看文件

@@ -4,6 +4,11 @@ import urllib, urllib2
import HTMLParser
#from BeautifulSoup import BeautifulSoup

# Adding this to try to help Surrey Heath - Duncan 14/9/2007
import cookielib
cookie_jar = cookielib.CookieJar()
################

import urlparse

import re
@@ -154,9 +159,20 @@ class AcolnetParser(HTMLParser.HTMLParser):
elif tag == "td":
self._in_td = False


def _getSearchResponse(self):
# It looks like we sometimes need to do some stuff to get around a
# javascript redirect and cookies.
search_form_request = urllib2.Request(self.base_url)
search_form_response = urllib2.urlopen(search_form_request)

return search_form_response

def getResultsByDayMonthYear(self, day, month, year):
# first we fetch the search page to get ourselves some session info...
search_form_response = urllib2.urlopen(self.base_url)
search_form_response = self._getSearchResponse()
search_form_contents = search_form_response.read()

#outfile = open("tmpfile", "w")
@@ -418,16 +434,50 @@ class SuffolkCoastalParser(AcolnetParser):
comments_email_address = "d.c.admin@suffolkcoastal.gov.uk"

class SurreyHeathParser(AcolnetParser):
# This is not working yet.
# _getSearchResponse is an attempt to work around
# cookies and a javascript redirect.
# I may have a bit more of a go at this at some point if I have time.
case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 4
proposal_tr = 5

comments_email_address = "development-control@surreyheath.gov.uk"

def _getSearchResponse(self):
# It looks like we sometimes need to do some stuff to get around a
# javascript redirect and cookies.
search_form_request = urllib2.Request(self.base_url)

# Lying about the user-agent doesn't seem to help.
#search_form_request.add_header("user-agent", "Mozilla/5.0 (compatible; Konqu...L/3.5.6 (like Gecko) (Kubuntu)")
search_form_response = urllib2.urlopen(search_form_request)
cookie_jar.extract_cookies(search_form_response, search_form_request)


print search_form_response.geturl()
print search_form_response.info()

print search_form_response.read()
# validate_url = "https://www.public.surreyheath-online.gov.uk/whalecom7cace3215643e22bb7b0b8cc97a7/whalecom0/InternalSite/Validate.asp"
# javascript_redirect_url = urlparse.urljoin(self.base_url, "/whalecom7cace3215643e22bb7b0b8cc97a7/whalecom0/InternalSite/RedirectToOrigURL.asp?site_name=public&secure=1")

# javascript_redirect_request = urllib2.Request(javascript_redirect_url)
# javascript_redirect_request.add_header('Referer', validate_url)
# cookie_jar.add_cookie_header(javascript_redirect_request)

# javascript_redirect_response = urllib2.urlopen(javascript_redirect_request)
# return javascript_redirect_response
if __name__ == '__main__':
day = 15
month = 3
day = 31
month = 8
year = 2007

# returns error 400 - bad request
@@ -440,6 +490,6 @@ if __name__ == '__main__':
# results as columns of one table

parser = SurreyHeathParser("Surrey Heath", "Surrey Heath", "https://www.public.surreyheath-online.gov.uk/whalecom60b1ef305f59f921/whalecom0/Scripts/PlanningPagesOnline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
print parser.getResults(day, month, year)

+ 4
- 0
trunk/cgi-bin/Allerdale.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Allerdale Borough Council"
authority_short_name = "Allerdale"
base_url = "http://planning.allerdale.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.AllerdaleSearchParser(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

+ 4
- 0
trunk/cgi-bin/Alnwick.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Alnwick District Council"
authority_short_name = "Alnwick"
base_url = "http://services.castlemorpeth.gov.uk:7777/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.AlnwickSearchParser(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

+ 4
- 0
trunk/cgi-bin/Angus.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Angus Council"
authority_short_name = "Angus"
base_url = "http://planning.angus.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Aylesbury Vale.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Aylesbury Vale District Council"
authority_short_name = "Aylesbury Vale"
base_url = "http://eplanning.aylesburyvaledc.gov.uk/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Babergh.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Babergh District Council"
authority_short_name = "Babergh"
base_url = "http://planning.babergh.gov.uk/dataOnlinePlanning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.BaberghParser(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

+ 4
- 0
trunk/cgi-bin/Barrow.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Barrow Borough Council"
authority_short_name = "Barrow"
base_url = "http://localportal.barrowbc.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.BarrowSearchParser(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

+ 4
- 0
trunk/cgi-bin/Basildon.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Basildon District Council"
authority_short_name = "Basildon"
base_url = "http://planning.basildon.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Basingstoke and Deane.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Basingstoke and Deane Borough Council"
authority_short_name = "Basingstoke and Deane"
base_url = "http://planning.basingstoke.gov.uk/DCOnline2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.BasingstokeParser(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

+ 4
- 0
trunk/cgi-bin/Bassetlaw.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bassetlaw District Council"
authority_short_name = "Bassetlaw"
base_url = "http://www.bassetlaw.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.BassetlawParser(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

+ 4
- 0
trunk/cgi-bin/Bath.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bath and North East Somerset"
authority_short_name = "Bath"
base_url = "http://planning.bathnes.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bexley.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bexley Council"
authority_short_name = "Bexley"
base_url = "http://publicaccess.bexley.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Blaby.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Blaby District Council"
authority_short_name = "Blaby"
base_url = "http://www.blaby.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bolsover.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bolsover District Council"
authority_short_name = "Bolsover"
base_url = "http://217.158.161.181/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bracknell Forest.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bracknell Forest Borough Council"
authority_short_name = "Bracknell Forest"
base_url = "https://my.bracknell-forest.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bridgnorth.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bridgnorth District Council"
authority_short_name = "Bridgnorth"
base_url = "http://www2.bridgnorth-dc.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.BridgnorthParser(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

+ 4
- 0
trunk/cgi-bin/Bristol.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bristol City Council"
authority_short_name = "Bristol"
base_url = "http://e2eweb.bristol-city.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Broads.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Broads Authority"
authority_short_name = "Broads"
base_url = "https://planning.broads-authority.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bromley.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "London Borough of Bromley"
authority_short_name = "Bromley"
base_url = "http://planningaccess.bromley.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Buckinghamshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Buckinghamshire County Council"
authority_short_name = "Buckinghamshire"
base_url = "http://www.bucksplanning.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Bury.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Bury Metropolitan Borough Council"
authority_short_name = "Bury"
base_url = "http://e-planning.bury.gov.uk/ePlanning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.BuryParser(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

+ 4
- 0
trunk/cgi-bin/Caradon.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Caradon District Council"
authority_short_name = "Caradon"
base_url = "http://publicaccess.caradon.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Carlisle.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Carlisle City Council"
authority_short_name = "Carlisle"
base_url = "http://planning.carlisle.gov.uk/acolnet/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.CarlisleParser(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

+ 4
- 0
trunk/cgi-bin/Chelmsford.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Chelmsford Borough Council"
authority_short_name = "Chelmsford"
base_url = "http://web1.chelmsfordbc.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Cherwell.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Cherwell District Council"
authority_short_name = "Cherwell"
base_url = "http://cherweb.cherwell-dc.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Chiltern.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Chiltern District Council"
authority_short_name = "Chiltern"
base_url = "https://isa.chiltern.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Chorley.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Chorley Borough Council"
authority_short_name = "Chorley"
base_url = "http://planning.chorley.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/City of London.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "City of London"
authority_short_name = "City of London"
base_url = "http://www.planning.cityoflondon.gov.uk/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Cornwall.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Cornwall County Council"
authority_short_name = "Cornwall"
base_url = "http://planapps.cornwall.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Coventry.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Coventry City Council"
authority_short_name = "Coventry"
base_url = "http://planning.coventry.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.CoventrySearchParser(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

+ 4
- 0
trunk/cgi-bin/Craven.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Craven District Council"
authority_short_name = "Craven"
base_url = "http://www.planning.cravendc.gov.uk/fastweb/"

#print "Content-Type: text/html" # HTML is following
#print

import FastWeb

parser = FastWeb.FastWeb(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

+ 4
- 0
trunk/cgi-bin/Croydon.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "London Borough of Croydon"
authority_short_name = "Croydon"
base_url = "http://planning.croydon.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.CroydonParser(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

+ 4
- 0
trunk/cgi-bin/Denbighshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Denbighshire County Council"
authority_short_name = "Denbighshire"
base_url = "http://planning.denbighshire.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.DenbighshireSearchParser(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

+ 4
- 0
trunk/cgi-bin/Derby.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Derby City Council"
authority_short_name = "Derby"
base_url = "http://195.224.106.204/scripts/planningpages02%5CXSLPagesDC_DERBY%5CDCWebPages/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.DerbyParser(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

+ 4
- 0
trunk/cgi-bin/Doncaster.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Doncaster Metropolitan Borough Council"
authority_short_name = "Doncaster"
base_url = "http://maps.doncaster.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Dundee.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Dundee City Council"
authority_short_name = "Dundee"
base_url = "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

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

@@ -18,12 +18,16 @@ authority_name = "Durham City Council"
authority_short_name = "Durham"
base_url = "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Ealing.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Ealing Council"
authority_short_name = "Ealing"
base_url = "http://www.pam.ealing.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.EalingSearchParser(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

+ 4
- 0
trunk/cgi-bin/Easington.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "District of Easington"
authority_short_name = "Easington"
base_url = "http://planning.easington.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.EasingtonSearchParser(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

+ 4
- 0
trunk/cgi-bin/East Devon.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "East Devon District Council"
authority_short_name = "East Devon"
base_url = "http://planning.eastdevon.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/East Dorset.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "East Dorset District Council"
authority_short_name = "East Dorset"
base_url = "http://193.243.228.16/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/East Lindsey.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "East Lindsey District Council"
authority_short_name = "East Lindsey"
base_url = "http://www.e-lindsey.gov.uk/planning/AcolnetCGI.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.EastLindseyParser(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

+ 4
- 0
trunk/cgi-bin/Eastleigh.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Eastleigh Borough Council"
authority_short_name = "Eastleigh"
base_url = "http://www.eastleigh.gov.uk/FastWEB/"

#print "Content-Type: text/html" # HTML is following
#print

import FastWeb

parser = FastWeb.FastWeb(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

+ 4
- 0
trunk/cgi-bin/Eden.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Eden District Council"
authority_short_name = "Eden"
base_url = "http://eforms.eden.gov.uk/fastweb/"

#print "Content-Type: text/html" # HTML is following
#print

import FastWeb

parser = FastWeb.FastWeb(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

+ 4
- 0
trunk/cgi-bin/Edinburgh.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "The City of Edinburgh Council"
authority_short_name = "Edinburgh"
base_url = "http://citydev-portal.edinburgh.gov.uk/publicaccess/dc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Epsom and Ewell.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Epsom and Ewell Borough Council"
authority_short_name = "Epsom and Ewell"
base_url = "http://eplanning.epsom-ewell.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Fenland.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Fenland District Council"
authority_short_name = "Fenland"
base_url = "http://www.fenland.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Fylde.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Fylde Borough Council"
authority_short_name = "Fylde"
base_url = "http://www2.fylde.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.FyldeParser(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

+ 4
- 0
trunk/cgi-bin/Gateshead.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Gateshead Metropolitan Borough Council"
authority_short_name = "Gateshead"
base_url = "http://planning.gateshead.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Gedling.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Gedling Borough Council"
authority_short_name = "Gedling"
base_url = "http://publicaccess.gedling.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Gloucestershire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Gloucestershire County Council"
authority_short_name = "Gloucestershire"
base_url = "http://planning.gloucestershire.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Gravesham.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Gravesham Borough Council"
authority_short_name = "Gravesham"
base_url = "http://195.102.67.4/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Hambleton.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Hambleton District Council"
authority_short_name = "Hambleton"
base_url = "http://planning.hambleton.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Hammersmith and Fulham.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "London Borough Of Hammersmith and Fulham"
authority_short_name = "Hammersmith and Fulham"
base_url = "http://www.apps.lbhf.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Haringey.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Haringey Council"
authority_short_name = "Haringey"
base_url = "http://www.planningservices.haringey.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.HaringeySearchParser(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

+ 4
- 0
trunk/cgi-bin/Harlow.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Harlow Council"
authority_short_name = "Harlow"
base_url = "http://planning.harlow.gov.uk/PlanningSearch/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.HarlowParser(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

+ 4
- 0
trunk/cgi-bin/Harrogate.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Harrogate Borough Council"
authority_short_name = "Harrogate"
base_url = "http://publicaccess.harrogate.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Hart.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Hart District Council"
authority_short_name = "Hart"
base_url = "http://publicaccess.hart.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Hartlepool.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Hartlepool Borough Council"
authority_short_name = "Hartlepool"
base_url = "http://eforms.hartlepool.gov.uk:7777/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.HartlepoolSearchParser(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

+ 4
- 0
trunk/cgi-bin/Hertsmere.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Hertsmere Borough Council"
authority_short_name = "Hertsmere"
base_url = "http://www2.hertsmere.gov.uk/ACOLNET/DCOnline//acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.HertsmereParser(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

+ 4
- 0
trunk/cgi-bin/High Peak.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "High Peak Borough Council"
authority_short_name = "High Peak"
base_url = "http://planning.highpeak.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.HighPeakSearchParser(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

+ 4
- 0
trunk/cgi-bin/Hinkley and Bosworth.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Hinkley and Bosworth Borough Council"
authority_short_name = "Hinkley and Bosworth"
base_url = "https://cx.hinckley-bosworth.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Huntingdonshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Huntingdonshire District Council"
authority_short_name = "Huntingdonshire"
base_url = "http://planning.huntsdc.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Kerrier.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Kerrier District Council"
authority_short_name = "Kerrier"
base_url = "http://publicaccess.kerrier.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Knowsley.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Knowsley Council"
authority_short_name = "Knowsley"
base_url = "http://publicaccess.knowsley.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Lancaster.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Lancaster City Council"
authority_short_name = "Lancaster"
base_url = "http://planapps.lancaster.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Lewisham.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "London Borough of Lewisham"
authority_short_name = "Lewisham"
base_url = "http://acolnet.lewisham.gov.uk/lewis-xslpagesdc/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.LewishamParser(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

+ 4
- 0
trunk/cgi-bin/Luton.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Luton Borough Council"
authority_short_name = "Luton"
base_url = "http://www.eplan.luton.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Malvern Hills.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Malvern Hills District Council"
authority_short_name = "Malvern Hills"
base_url = "http://public.malvernhills.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Manchester.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Manchester City Council"
authority_short_name = "Manchester"
base_url = "http://www.publicaccess.manchester.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Mansfield.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Mansfield District Council"
authority_short_name = "Mansfield"
base_url = "http://www.mansfield.gov.uk/Fastweb23/"

#print "Content-Type: text/html" # HTML is following
#print

import FastWeb

parser = FastWeb.FastWeb(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

+ 4
- 0
trunk/cgi-bin/Mid Devon.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Mid Devon District Council"
authority_short_name = "Mid Devon"
base_url = "http://planning.middevon.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Milton Keynes.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Milton Keynes Council"
authority_short_name = "Milton Keynes"
base_url = "http://publicaccess.milton-keynes.gov.uk/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Moray.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Moray Council"
authority_short_name = "Moray"
base_url = "http://public.moray.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/NW Leicestershire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "North West Leicestershire District Council"
authority_short_name = "NW Leicestershire"
base_url = "http://paccess.nwleics.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/New Forest DC.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "New Forest District Council"
authority_short_name = "New Forest DC"
base_url = "http://web3.newforest.gov.uk/planningonline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.NewForestDCParser(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

+ 4
- 0
trunk/cgi-bin/New Forest NP.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "New Forest National Park"
authority_short_name = "New Forest NP"
base_url = "http://web01.newforestnpa.gov.uk/planningpages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.NewForestNPParser(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

+ 4
- 0
trunk/cgi-bin/Newcastle-under-Lyme.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Newcastle-under-Lyme Borough Council"
authority_short_name = "Newcastle-under-Lyme"
base_url = "http://publicaccess.newcastle-staffs.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Newcastle.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Newcastle City Council"
authority_short_name = "Newcastle"
base_url = "http://gispublic.newcastle.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Newham.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "London Borough Of Newham"
authority_short_name = "Newham"
base_url = "http://pacaps.newham.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/North Hertfordshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "North Hertfordshire District Council"
authority_short_name = "North Hertfordshire"
base_url = "http://www.north-herts.gov.uk/dcdataonline/Pages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.NorthHertfordshireParser(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

+ 4
- 0
trunk/cgi-bin/North Tyneside.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "North Tyneside Council"
authority_short_name = "North Tyneside"
base_url = "http://publicaccess.northtyneside.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/North Warwickshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "North Warwickshire Borough Council"
authority_short_name = "North Warwickshire"
base_url = "http://planning.northwarks.gov.uk/"

#print "Content-Type: text/html" # HTML is following
#print

import ApplicationSearchServletParser

parser = ApplicationSearchServletParser.NorthWarksSearchParser(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

+ 4
- 0
trunk/cgi-bin/North Wiltshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "North Wiltshire District Council"
authority_short_name = "North Wiltshire"
base_url = "http://planning.northwilts.gov.uk/DCOnline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.NorthWiltshireParser(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

+ 4
- 0
trunk/cgi-bin/Northumberland.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Northumberland County Council"
authority_short_name = "Northumberland"
base_url = "http://planning.northumberland.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Oadby and Wigston.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "The Borough of Oadby and Wigston"
authority_short_name = "Oadby and Wigston"
base_url = "http://web.owbc.net/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Oldham.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Oldham District Council"
authority_short_name = "Oldham"
base_url = "http://planning.oldham.gov.uk/planning//acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.OldhamParser(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

+ 4
- 0
trunk/cgi-bin/Oswestry.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Oswestry Borough Council"
authority_short_name = "Oswestry"
base_url = "http://193.114.205.78/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Perthshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Perth and Kinross Council"
authority_short_name = "Perthshire"
base_url = "http://193.63.61.22/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Peterborough.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Peterborough City Council"
authority_short_name = "Peterborough"
base_url = "http://194.72.246.15/publicaccess/dc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Portsmouth.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Portsmouth City Council"
authority_short_name = "Portsmouth"
base_url = "http://planning.portsmouth.gov.uk/PublicAccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Redditch.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Redditch Borough Council"
authority_short_name = "Redditch"
base_url = "http://access.redditchbc.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Renfrewshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Renfrewshire Council"
authority_short_name = "Renfrewshire"
base_url = "http://planning.renfrewshire.gov.uk/acolnetDCpages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.RenfrewshireParser(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

+ 4
- 0
trunk/cgi-bin/Rushmoor.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Rushmoor Borough Council"
authority_short_name = "Rushmoor"
base_url = "http://pa-dc.rushmoor.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Scarborough.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Scarborough Borough Council"
authority_short_name = "Scarborough"
base_url = "http://planning.scarborough.gov.uk/publicaccess/dc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Selby.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Selby District Council"
authority_short_name = "Selby"
base_url = "http://publicaccess.selby.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/Sevenoaks.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "Sevenoaks District Council"
authority_short_name = "Sevenoaks"
base_url = "http://publicaccess.sevenoaks.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/South Bedfordshire.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "South Bedfordshire District Council"
authority_short_name = "South Bedfordshire"
base_url = "http://planning.southbeds.gov.uk/plantech/DCWebPages/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

#print "Content-Type: text/html" # HTML is following
#print

import AcolnetParser

parser = AcolnetParser.SouthBedfordshireParser(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

+ 4
- 0
trunk/cgi-bin/South Bucks.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "South Bucks District Council"
authority_short_name = "South Bucks"
base_url = "http://sbdc-paweb.southbucks.gov.uk/publicaccess/tdc/"

#print "Content-Type: text/html" # HTML is following
#print

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

+ 4
- 0
trunk/cgi-bin/South Lakeland.cgi 查看文件

@@ -18,12 +18,16 @@ authority_name = "South Lakeland District Council"
authority_short_name = "South Lakeland"
base_url = "http://www.southlakeland.gov.uk/fastweb/"

#print "Content-Type: text/html" # HTML is following
#print

import FastWeb

parser = FastWeb.FastWeb(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

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存