Przeglądaj źródła

adding oldham

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

+ 16
- 1
trunk/cgi-bin/AcolnetParser.py Wyświetl plik

@@ -374,6 +374,21 @@ class NorthWiltshireParser(AcolnetParser):
location_tr = 6
proposal_tr = 7

class OldhamParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 3
location_tr = 6
proposal_tr = 7

def _cleanupHTML(self, html):
"""There is a bad table end tag in this one.
Fix it before we start"""
bad_table_end = '</table summary="Copyright">'
good_table_end = '</table>'
return html.replace(bad_table_end, good_table_end)

if __name__ == '__main__':
day = 15
@@ -389,7 +404,7 @@ if __name__ == '__main__':
# canterbury
# results as columns of one table

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

+ 0
- 0
trunk/cgi-bin/Allerdale.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Alnwick.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Angus.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Aylesbury Vale.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Babergh.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Barrow.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Basildon.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Basingstoke and Deane.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bassetlaw.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bath.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bexley.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Blaby.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bolsover.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bridgnorth.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bristol.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Buckinghamshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Bury.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Carlisle.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Chelmsford.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Cherwell.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Chorley.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/City of London.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Cornwall.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Coventry.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Croydon.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Denbighshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Derby.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Doncaster.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Dundee.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Durham.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Ealing.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Easington.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/East Devon.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/East Dorset.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/East Lindsey.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Edinburgh.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Epsom and Ewell.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Fenland.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Fylde.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Gateshead.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Gedling.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Gloucestershire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Gravesham.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Hammersmith and Fulham.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Haringey.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Harlow.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Harrogate.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Hart.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Hartlepool.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Hertsmere.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/High Peak.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Huntingdonshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Kerrier.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Knowsley.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Lancaster.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Lewisham.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Luton.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Malvern Hills.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Manchester.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Mid Devon.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Milton Keynes.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/NW Leicestershire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/New Forest.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Newcastle-under-Lyme.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Newcastle.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Newham.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/North Hertfordshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/North Tyneside.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/North Warwickshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/North Wiltshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Northumberland.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Oadby and Wigston.cgi Wyświetl plik


+ 29
- 0
trunk/cgi-bin/Oldham.cgi Wyświetl plik

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

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

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

+ 0
- 0
trunk/cgi-bin/Oswestry.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Peterborough.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Portsmouth.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Redditch.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Rushmoor.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Scarborough.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Sevenoaks.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/South Bucks.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/South Ribble.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/South Staffordshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/SouthOxfordshire.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Southampton.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Spelthorne.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/St Helens.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Stevenage.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Stirling.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Stockton-On-Tees.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Stratford.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Sunderland.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Teignbridge.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Test Valley.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Tonbridge.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Torbay.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Vale Royal.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Waveney.cgi Wyświetl plik


+ 0
- 0
trunk/cgi-bin/Wear Valley.cgi Wyświetl plik


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików

Ładowanie…
Anuluj
Zapisz