ソースを参照

adding Carlisle and New Forest

tidy up other code for Acolnet
master
duncan.parkes 17年前
コミット
b40198af60
100個のファイルの変更122行の追加92行の削除
  1. +35
    -92
      cgi-bin/AcolnetParser.py
  2. +0
    -0
      cgi-bin/Allerdale.cgi
  3. +0
    -0
      cgi-bin/Alnwick.cgi
  4. +0
    -0
      cgi-bin/Angus.cgi
  5. +0
    -0
      cgi-bin/Aylesbury Vale.cgi
  6. +0
    -0
      cgi-bin/Babergh.cgi
  7. +0
    -0
      cgi-bin/Barrow.cgi
  8. +0
    -0
      cgi-bin/Basildon.cgi
  9. +0
    -0
      cgi-bin/Basingstoke and Deane.cgi
  10. +0
    -0
      cgi-bin/Bassetlaw.cgi
  11. +0
    -0
      cgi-bin/Bath.cgi
  12. +0
    -0
      cgi-bin/Bexley.cgi
  13. +0
    -0
      cgi-bin/Blaby.cgi
  14. +0
    -0
      cgi-bin/Bolsover.cgi
  15. +29
    -0
      cgi-bin/Bridgnorth.cgi
  16. +0
    -0
      cgi-bin/Bristol.cgi
  17. +0
    -0
      cgi-bin/Buckinghamshire.cgi
  18. +0
    -0
      cgi-bin/Bury.cgi
  19. +29
    -0
      cgi-bin/Carlisle.cgi
  20. +0
    -0
      cgi-bin/Chelmsford.cgi
  21. +0
    -0
      cgi-bin/Cherwell.cgi
  22. +0
    -0
      cgi-bin/Chorley.cgi
  23. +0
    -0
      cgi-bin/City of London.cgi
  24. +0
    -0
      cgi-bin/Cornwall.cgi
  25. +0
    -0
      cgi-bin/Coventry.cgi
  26. +0
    -0
      cgi-bin/Croydon.cgi
  27. +0
    -0
      cgi-bin/Denbighshire.cgi
  28. +0
    -0
      cgi-bin/Derby.cgi
  29. +0
    -0
      cgi-bin/Doncaster.cgi
  30. +0
    -0
      cgi-bin/Dundee.cgi
  31. +0
    -0
      cgi-bin/Durham.cgi
  32. +0
    -0
      cgi-bin/Ealing.cgi
  33. +0
    -0
      cgi-bin/Easington.cgi
  34. +0
    -0
      cgi-bin/East Devon.cgi
  35. +0
    -0
      cgi-bin/East Dorset.cgi
  36. +0
    -0
      cgi-bin/East Lindsey.cgi
  37. +0
    -0
      cgi-bin/Edinburgh.cgi
  38. +0
    -0
      cgi-bin/Epsom and Ewell.cgi
  39. +0
    -0
      cgi-bin/Fenland.cgi
  40. +0
    -0
      cgi-bin/Fylde.cgi
  41. +0
    -0
      cgi-bin/Gateshead.cgi
  42. +0
    -0
      cgi-bin/Gedling.cgi
  43. +0
    -0
      cgi-bin/Gloucestershire.cgi
  44. +0
    -0
      cgi-bin/Gravesham.cgi
  45. +0
    -0
      cgi-bin/Hammersmith and Fulham.cgi
  46. +0
    -0
      cgi-bin/Haringey.cgi
  47. +0
    -0
      cgi-bin/Harlow.cgi
  48. +0
    -0
      cgi-bin/Harrogate.cgi
  49. +0
    -0
      cgi-bin/Hart.cgi
  50. +0
    -0
      cgi-bin/Hartlepool.cgi
  51. +0
    -0
      cgi-bin/Hertsmere.cgi
  52. +0
    -0
      cgi-bin/High Peak.cgi
  53. +0
    -0
      cgi-bin/Huntingdonshire.cgi
  54. +0
    -0
      cgi-bin/Kerrier.cgi
  55. +0
    -0
      cgi-bin/Knowsley.cgi
  56. +0
    -0
      cgi-bin/Lancaster.cgi
  57. +0
    -0
      cgi-bin/Lewisham.cgi
  58. +0
    -0
      cgi-bin/Luton.cgi
  59. +0
    -0
      cgi-bin/Malvern Hills.cgi
  60. +0
    -0
      cgi-bin/Manchester.cgi
  61. +0
    -0
      cgi-bin/Mid Devon.cgi
  62. +0
    -0
      cgi-bin/Milton Keynes.cgi
  63. +0
    -0
      cgi-bin/NW Leicestershire.cgi
  64. +29
    -0
      cgi-bin/New Forest.cgi
  65. +0
    -0
      cgi-bin/Newcastle-under-Lyme.cgi
  66. +0
    -0
      cgi-bin/Newham.cgi
  67. +0
    -0
      cgi-bin/North Hertfordshire.cgi
  68. +0
    -0
      cgi-bin/North Tyneside.cgi
  69. +0
    -0
      cgi-bin/North Warwickshire.cgi
  70. +0
    -0
      cgi-bin/Northumberland.cgi
  71. +0
    -0
      cgi-bin/Oadby and Wigston.cgi
  72. +0
    -0
      cgi-bin/Oswestry.cgi
  73. +0
    -0
      cgi-bin/Peterborough.cgi
  74. +0
    -0
      cgi-bin/Portsmouth.cgi
  75. +0
    -0
      cgi-bin/Redditch.cgi
  76. +0
    -0
      cgi-bin/Rushmoor.cgi
  77. +0
    -0
      cgi-bin/Scarborough.cgi
  78. +0
    -0
      cgi-bin/Sevenoaks.cgi
  79. +0
    -0
      cgi-bin/South Bucks.cgi
  80. +0
    -0
      cgi-bin/South Ribble.cgi
  81. +0
    -0
      cgi-bin/South Staffordshire.cgi
  82. +0
    -0
      cgi-bin/SouthOxfordshire.cgi
  83. +0
    -0
      cgi-bin/Southampton.cgi
  84. +0
    -0
      cgi-bin/Spelthorne.cgi
  85. +0
    -0
      cgi-bin/St Helens.cgi
  86. +0
    -0
      cgi-bin/Stevenage.cgi
  87. +0
    -0
      cgi-bin/Stirling.cgi
  88. +0
    -0
      cgi-bin/Stockton-On-Tees.cgi
  89. +0
    -0
      cgi-bin/Stratford.cgi
  90. +0
    -0
      cgi-bin/Sunderland.cgi
  91. +0
    -0
      cgi-bin/Teignbridge.cgi
  92. +0
    -0
      cgi-bin/Test Valley.cgi
  93. +0
    -0
      cgi-bin/Tonbridge.cgi
  94. +0
    -0
      cgi-bin/Torbay.cgi
  95. +0
    -0
      cgi-bin/Vale Royal.cgi
  96. +0
    -0
      cgi-bin/Waveney.cgi
  97. +0
    -0
      cgi-bin/Wear Valley.cgi
  98. +0
    -0
      cgi-bin/Wellingborough.cgi
  99. +0
    -0
      cgi-bin/West Berkshire.cgi
  100. +0
    -0
      cgi-bin/West Lancashire.cgi

+ 35
- 92
cgi-bin/AcolnetParser.py ファイルの表示

@@ -23,6 +23,8 @@ from time import strptime
date_format = "%d/%m/%Y"
our_date = date(2007,4,25)

#This is to get the system key out of the info url
system_key_regex = re.compile("TheSystemkey=(\d*)", re.IGNORECASE)

class AcolnetParser(HTMLParser.HTMLParser):
case_number_tr = None # this one can be got by the td class attribute
@@ -34,6 +36,7 @@ class AcolnetParser(HTMLParser.HTMLParser):
# appropriate email address instead
comments_email_address = None

action_regex = re.compile("<form[^>]*action=\"([^\"]*ACTION=UNWRAP&RIPSESSION=[^\"]*)\"[^>]*>", re.IGNORECASE)
def __init__(self,
authority_name,
@@ -96,23 +99,18 @@ class AcolnetParser(HTMLParser.HTMLParser):
self._tr_number += 1
if tag == "td":
self._in_td = True
if self._tr_number == self.case_number_tr:
#get the reference and the info link here
pass
elif self._tr_number == self.reg_date_tr:
#get the registration date here
pass
elif self._tr_number == self.location_tr:
#get the address and postcode here
pass
elif self._tr_number == self.proposal_tr:
#get the description here
pass
if tag == "a" and self._tr_number == self.case_number_tr:
# this is where we get the info link and the case number
for key, value in attrs:
if key == "href":
self._current_application.info_url = value

system_key = system_key_regex.search(value).groups()[0]

if self.comments_email_address is not None:
self._current_application.comment_url = self.comments_email_address
else:
self._current_application.comment_url = value.replace("PgeResultDetail", "PgeCommentForm")
def handle_data(self, data):
# If we are in the tr which contains the case number,
@@ -206,52 +204,31 @@ class AcolnetParser(HTMLParser.HTMLParser):


class BaberghParser(AcolnetParser):
#search_url = "http://planning.babergh.gov.uk/dataOnlinePlanning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 4
proposal_tr = 5

#authority_name = "Babergh District Council"
#authority_short_name = "Babergh"

# It would be nice to scrape this...
comments_email_address = "planning.reception@babergh.gov.uk"

action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">")

class BasingstokeParser(AcolnetParser):
#search_url = "http://planning.basingstoke.gov.uk/DCOnline2/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 3
location_tr = 6
proposal_tr = 8

#authority_name = "Basingstoke and Deane Borough Council"
#authority_short_name = "Basingstoke and Deane"

# It would be nice to scrape this...
comments_email_address = "development.control@basingstoke.gov.uk"

action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"\"return ValidateSearch\(\)\"\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">")

class BassetlawParser(AcolnetParser):
#search_url = "http://www.bassetlaw.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 5
proposal_tr = 6

#authority_name = "Bassetlaw District Council"
#authority_short_name = "Bassetlaw"

comments_email_address = "planning@bassetlaw.gov.uk"

action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

def _cleanupHTML(self, html):
"""There is a broken div in this page. We don't need any divs, so
let's get rid of them all."""
@@ -260,34 +237,26 @@ class BassetlawParser(AcolnetParser):
return div_regex.sub('', html)


class BridgenorthParser(AcolnetParser):
class BridgnorthParser(AcolnetParser):
# This site is currently down...
#search_url = "http://www2.bridgnorth-dc.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"
#authority_name = "Bridgenorth District Council"
#authority_short_name = "Bridgenorth"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 4
proposal_tr = 5

#authority_name = "Bridgenorth District Council"
#authority_short_name = "Bridgenorth"

comments_email_address = "contactus@bridgnorth-dc.gov.uk"

action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class BuryParser(AcolnetParser):
#search_url = "http://e-planning.bury.gov.uk/ePlanning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 4
proposal_tr = 5

#authority_name = "Bury Metropolitan Borough Council"
#authority_short_name = "Bury"

comments_email_address = "development.control@bury.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

## class CanterburyParser(AcolnetParser):
## search_url = "http://planning.canterbury.gov.uk/scripts/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
@@ -301,36 +270,22 @@ class BuryParser(AcolnetParser):
## authority_short_name = "Canterbury"

## comments_email_address = ""
## action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"\"return ValidateSearch\(\)\"\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">")

class CarlisleParser(AcolnetParser):
#search_url = "http://planning.carlisle.gov.uk/acolnet/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 5
proposal_tr = 6

#authority_name = "Carlisle City Council"
#authority_short_name = "Carlisle"

comments_email_address = "dc@carlisle.gov.uk"
action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"\"return ValidateSearch\(\)\"\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">", re.IGNORECASE)


class DerbyParser(AcolnetParser):
#search_url = "http://195.224.106.204/scripts/planningpages02%5CXSLPagesDC_DERBY%5CDCWebPages/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 3
location_tr = 4
proposal_tr = 5

#authority_name = "Derby City Council"
#authority_short_name = "Derby"

comments_email_address = "developmentcontrol@derby.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class CroydonParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -339,7 +294,6 @@ class CroydonParser(AcolnetParser):
proposal_tr = 6

comments_email_address = "planning.control@croydon.gov.uk"
action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"\"return ValidateSearch\(\)\"\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class EastLindseyParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -348,7 +302,6 @@ class EastLindseyParser(AcolnetParser):
proposal_tr = 6

comments_email_address = "development.control@e-lindsey.gov.uk"
action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"return ValidateSearch\(\)\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class FyldeParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -357,8 +310,6 @@ class FyldeParser(AcolnetParser):
proposal_tr = 5

comments_email_address = "planning@fylde.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">")


class HarlowParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -367,8 +318,6 @@ class HarlowParser(AcolnetParser):
proposal_tr = 5

comments_email_address = "Planning.services@harlow.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class HavantParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -377,7 +326,6 @@ class HavantParser(AcolnetParser):
proposal_tr = 5

comments_email_address = "representations@havant.gov.uk"
action_regex = re.compile("<form id=\"frmSearch\" onSubmit=\"\"return ValidateSearch\(\)\"\" theme=\"\"[theme]\"\" name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class HertsmereParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -386,7 +334,6 @@ class HertsmereParser(AcolnetParser):
proposal_tr = 5

comments_email_address = "planning@hertsmere.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

class LewishamParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
@@ -394,50 +341,46 @@ class LewishamParser(AcolnetParser):
location_tr = 4
proposal_tr = 5

comments_email_address = "planning@hertsmere.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"([^\"]*)\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)
comments_email_address = "planning@lewisham.gov.uk"
class NorthHertfordshireParser(AcolnetParser):
## class NorthHertfordshireParser(AcolnetParser):
## 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 = "planning@lewisham.gov.uk"
## class MidSuffolkParser(AcolnetParser):
## 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 = "planning@lewisham.gov.uk"
## #action_regex = re.compile("<FORM .*action=\"(.*ACTION=UNWRAP&RIPSESSION=[^\"]*)\"[^>]*>", re.IGNORECASE)

class NewForestParser(AcolnetParser):
# In this case there is an online comment facility at the
# bottom of each view app page...
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 = "planning@lewisham.gov.uk"
action_regex = re.compile("<FORM name=\"frmSearch\" method=\"post\" action=\"\" onSubmit=\"return ValidateSearch\(\)\" enctype=\"multipart/form-data\">", re.IGNORECASE)

if __name__ == '__main__':
day = 15
month = 3
year = 2007

# working
# parser = BasingstokeParser()
#parser = BaberghParser("Babergh District Council", "Babergh", "http://planning.babergh.gov.uk/dataOnlinePlanning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch")

# works with the divs stripped out
#parser = BassetlawParser()

# returns error 400 - bad request
#parser = BridgenorthParser()

# working
#parser = BuryParser()

# cambridgeshire is a bit different...
# no advanced search page

# canterbury
# results as columns of one table

# returns error 400 - bad request
#parser = CarlisleParser()

# working
#parser = DerbyParser()


parser = HavantParser("HavantBC", "Havant", "http://www3.havant.gov.uk/scripts/planningpages/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch")
print parser.getResults(day, month, year)


+ 0
- 0
cgi-bin/Allerdale.cgi ファイルの表示


+ 0
- 0
cgi-bin/Alnwick.cgi ファイルの表示


+ 0
- 0
cgi-bin/Angus.cgi ファイルの表示


+ 0
- 0
cgi-bin/Aylesbury Vale.cgi ファイルの表示


+ 0
- 0
cgi-bin/Babergh.cgi ファイルの表示


+ 0
- 0
cgi-bin/Barrow.cgi ファイルの表示


+ 0
- 0
cgi-bin/Basildon.cgi ファイルの表示


+ 0
- 0
cgi-bin/Basingstoke and Deane.cgi ファイルの表示


+ 0
- 0
cgi-bin/Bassetlaw.cgi ファイルの表示


+ 0
- 0
cgi-bin/Bath.cgi ファイルの表示


+ 0
- 0
cgi-bin/Bexley.cgi ファイルの表示


+ 0
- 0
cgi-bin/Blaby.cgi ファイルの表示


+ 0
- 0
cgi-bin/Bolsover.cgi ファイルの表示


+ 29
- 0
cgi-bin/Bridgnorth.cgi ファイルの表示

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

# This is the parser for Bridgnorth District 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 = "Bridgnorth District Council"
authority_short_name = "Bridgnorth"
base_url = "http://www2.bridgnorth-dc.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.PgeSearch"

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

+ 0
- 0
cgi-bin/Bristol.cgi ファイルの表示


+ 0
- 0
cgi-bin/Buckinghamshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Bury.cgi ファイルの表示


+ 29
- 0
cgi-bin/Carlisle.cgi ファイルの表示

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

# This is the parser for Carlisle 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 = "Carlisle City Council"
authority_short_name = "Carlisle"
base_url = "http://planning.carlisle.gov.uk/acolnet/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

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

+ 0
- 0
cgi-bin/Chelmsford.cgi ファイルの表示


+ 0
- 0
cgi-bin/Cherwell.cgi ファイルの表示


+ 0
- 0
cgi-bin/Chorley.cgi ファイルの表示


+ 0
- 0
cgi-bin/City of London.cgi ファイルの表示


+ 0
- 0
cgi-bin/Cornwall.cgi ファイルの表示


+ 0
- 0
cgi-bin/Coventry.cgi ファイルの表示


+ 0
- 0
cgi-bin/Croydon.cgi ファイルの表示


+ 0
- 0
cgi-bin/Denbighshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Derby.cgi ファイルの表示


+ 0
- 0
cgi-bin/Doncaster.cgi ファイルの表示


+ 0
- 0
cgi-bin/Dundee.cgi ファイルの表示


+ 0
- 0
cgi-bin/Durham.cgi ファイルの表示


+ 0
- 0
cgi-bin/Ealing.cgi ファイルの表示


+ 0
- 0
cgi-bin/Easington.cgi ファイルの表示


+ 0
- 0
cgi-bin/East Devon.cgi ファイルの表示


+ 0
- 0
cgi-bin/East Dorset.cgi ファイルの表示


+ 0
- 0
cgi-bin/East Lindsey.cgi ファイルの表示


+ 0
- 0
cgi-bin/Edinburgh.cgi ファイルの表示


+ 0
- 0
cgi-bin/Epsom and Ewell.cgi ファイルの表示


+ 0
- 0
cgi-bin/Fenland.cgi ファイルの表示


+ 0
- 0
cgi-bin/Fylde.cgi ファイルの表示


+ 0
- 0
cgi-bin/Gateshead.cgi ファイルの表示


+ 0
- 0
cgi-bin/Gedling.cgi ファイルの表示


+ 0
- 0
cgi-bin/Gloucestershire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Gravesham.cgi ファイルの表示


+ 0
- 0
cgi-bin/Hammersmith and Fulham.cgi ファイルの表示


+ 0
- 0
cgi-bin/Haringey.cgi ファイルの表示


+ 0
- 0
cgi-bin/Harlow.cgi ファイルの表示


+ 0
- 0
cgi-bin/Harrogate.cgi ファイルの表示


+ 0
- 0
cgi-bin/Hart.cgi ファイルの表示


+ 0
- 0
cgi-bin/Hartlepool.cgi ファイルの表示


+ 0
- 0
cgi-bin/Hertsmere.cgi ファイルの表示


+ 0
- 0
cgi-bin/High Peak.cgi ファイルの表示


+ 0
- 0
cgi-bin/Huntingdonshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Kerrier.cgi ファイルの表示


+ 0
- 0
cgi-bin/Knowsley.cgi ファイルの表示


+ 0
- 0
cgi-bin/Lancaster.cgi ファイルの表示


+ 0
- 0
cgi-bin/Lewisham.cgi ファイルの表示


+ 0
- 0
cgi-bin/Luton.cgi ファイルの表示


+ 0
- 0
cgi-bin/Malvern Hills.cgi ファイルの表示


+ 0
- 0
cgi-bin/Manchester.cgi ファイルの表示


+ 0
- 0
cgi-bin/Mid Devon.cgi ファイルの表示


+ 0
- 0
cgi-bin/Milton Keynes.cgi ファイルの表示


+ 0
- 0
cgi-bin/NW Leicestershire.cgi ファイルの表示


+ 29
- 0
cgi-bin/New Forest.cgi ファイルの表示

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

# This is the parser for New Forest National Park.
# 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 = "New Forest National Park"
authority_short_name = "New Forest"
base_url = "http://web01.newforestnpa.gov.uk/planningpages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"

import AcolnetParser

parser = AcolnetParser.NewForestParser(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
- 0
cgi-bin/Newcastle-under-Lyme.cgi ファイルの表示


+ 0
- 0
cgi-bin/Newham.cgi ファイルの表示


+ 0
- 0
cgi-bin/North Hertfordshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/North Tyneside.cgi ファイルの表示


+ 0
- 0
cgi-bin/North Warwickshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Northumberland.cgi ファイルの表示


+ 0
- 0
cgi-bin/Oadby and Wigston.cgi ファイルの表示


+ 0
- 0
cgi-bin/Oswestry.cgi ファイルの表示


+ 0
- 0
cgi-bin/Peterborough.cgi ファイルの表示


+ 0
- 0
cgi-bin/Portsmouth.cgi ファイルの表示


+ 0
- 0
cgi-bin/Redditch.cgi ファイルの表示


+ 0
- 0
cgi-bin/Rushmoor.cgi ファイルの表示


+ 0
- 0
cgi-bin/Scarborough.cgi ファイルの表示


+ 0
- 0
cgi-bin/Sevenoaks.cgi ファイルの表示


+ 0
- 0
cgi-bin/South Bucks.cgi ファイルの表示


+ 0
- 0
cgi-bin/South Ribble.cgi ファイルの表示


+ 0
- 0
cgi-bin/South Staffordshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/SouthOxfordshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/Southampton.cgi ファイルの表示


+ 0
- 0
cgi-bin/Spelthorne.cgi ファイルの表示


+ 0
- 0
cgi-bin/St Helens.cgi ファイルの表示


+ 0
- 0
cgi-bin/Stevenage.cgi ファイルの表示


+ 0
- 0
cgi-bin/Stirling.cgi ファイルの表示


+ 0
- 0
cgi-bin/Stockton-On-Tees.cgi ファイルの表示


+ 0
- 0
cgi-bin/Stratford.cgi ファイルの表示


+ 0
- 0
cgi-bin/Sunderland.cgi ファイルの表示


+ 0
- 0
cgi-bin/Teignbridge.cgi ファイルの表示


+ 0
- 0
cgi-bin/Test Valley.cgi ファイルの表示


+ 0
- 0
cgi-bin/Tonbridge.cgi ファイルの表示


+ 0
- 0
cgi-bin/Torbay.cgi ファイルの表示


+ 0
- 0
cgi-bin/Vale Royal.cgi ファイルの表示


+ 0
- 0
cgi-bin/Waveney.cgi ファイルの表示


+ 0
- 0
cgi-bin/Wear Valley.cgi ファイルの表示


+ 0
- 0
cgi-bin/Wellingborough.cgi ファイルの表示


+ 0
- 0
cgi-bin/West Berkshire.cgi ファイルの表示


+ 0
- 0
cgi-bin/West Lancashire.cgi ファイルの表示


変更されたファイルが多すぎるため、一部のファイルは表示されません

読み込み中…
キャンセル
保存