Bladeren bron

adding Harlow

import/raw
duncan.parkes 17 jaren geleden
bovenliggende
commit
9118bfb9af
100 gewijzigde bestanden met toevoegingen van 50 en 1 verwijderingen
  1. +10
    -0
      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/Bristol.cgi
  16. +0
    -0
      trunk/cgi-bin/Buckinghamshire.cgi
  17. +0
    -0
      trunk/cgi-bin/Bury.cgi
  18. +0
    -0
      trunk/cgi-bin/Chelmsford.cgi
  19. +0
    -0
      trunk/cgi-bin/Cherwell.cgi
  20. +0
    -0
      trunk/cgi-bin/Chorley.cgi
  21. +0
    -0
      trunk/cgi-bin/City of London.cgi
  22. +0
    -0
      trunk/cgi-bin/Cornwall.cgi
  23. +0
    -0
      trunk/cgi-bin/Coventry.cgi
  24. +0
    -0
      trunk/cgi-bin/Croydon.cgi
  25. +0
    -0
      trunk/cgi-bin/Denbighshire.cgi
  26. +0
    -0
      trunk/cgi-bin/Derby.cgi
  27. +0
    -0
      trunk/cgi-bin/Doncaster.cgi
  28. +0
    -0
      trunk/cgi-bin/Dundee.cgi
  29. +0
    -0
      trunk/cgi-bin/Durham.cgi
  30. +0
    -0
      trunk/cgi-bin/Ealing.cgi
  31. +0
    -0
      trunk/cgi-bin/Easington.cgi
  32. +0
    -0
      trunk/cgi-bin/East Devon.cgi
  33. +0
    -0
      trunk/cgi-bin/East Dorset.cgi
  34. +0
    -0
      trunk/cgi-bin/East Lindsey.cgi
  35. +0
    -0
      trunk/cgi-bin/Edinburgh.cgi
  36. +0
    -0
      trunk/cgi-bin/Epsom and Ewell.cgi
  37. +0
    -0
      trunk/cgi-bin/Fenland.cgi
  38. +0
    -0
      trunk/cgi-bin/Fylde.cgi
  39. +0
    -0
      trunk/cgi-bin/Gateshead.cgi
  40. +0
    -0
      trunk/cgi-bin/Gedling.cgi
  41. +0
    -0
      trunk/cgi-bin/Gloucestershire.cgi
  42. +0
    -0
      trunk/cgi-bin/Gravesham.cgi
  43. +0
    -0
      trunk/cgi-bin/Hammersmith and Fulham.cgi
  44. +0
    -0
      trunk/cgi-bin/Haringey.cgi
  45. +29
    -0
      trunk/cgi-bin/Harlow.cgi
  46. +0
    -0
      trunk/cgi-bin/Harrogate.cgi
  47. +0
    -0
      trunk/cgi-bin/Hart.cgi
  48. +0
    -0
      trunk/cgi-bin/Hartlepool.cgi
  49. +0
    -0
      trunk/cgi-bin/High Peak.cgi
  50. +0
    -0
      trunk/cgi-bin/Huntingdonshire.cgi
  51. +0
    -0
      trunk/cgi-bin/Kerrier.cgi
  52. +0
    -0
      trunk/cgi-bin/Knowsley.cgi
  53. +0
    -0
      trunk/cgi-bin/Lancaster.cgi
  54. +0
    -0
      trunk/cgi-bin/Luton.cgi
  55. +0
    -0
      trunk/cgi-bin/Malvern Hills.cgi
  56. +0
    -0
      trunk/cgi-bin/Mid Devon.cgi
  57. +0
    -0
      trunk/cgi-bin/Milton Keynes.cgi
  58. +0
    -0
      trunk/cgi-bin/NW Leicestershire.cgi
  59. +0
    -0
      trunk/cgi-bin/Newcastle-under-Lyme.cgi
  60. +0
    -0
      trunk/cgi-bin/Newham.cgi
  61. +0
    -0
      trunk/cgi-bin/North Tyneside.cgi
  62. +0
    -0
      trunk/cgi-bin/North Warwickshire.cgi
  63. +0
    -0
      trunk/cgi-bin/Northumberland.cgi
  64. +0
    -0
      trunk/cgi-bin/Oadby and Wigston.cgi
  65. +0
    -0
      trunk/cgi-bin/Oswestry.cgi
  66. +0
    -0
      trunk/cgi-bin/Peterborough.cgi
  67. +0
    -0
      trunk/cgi-bin/Portsmouth.cgi
  68. +0
    -0
      trunk/cgi-bin/Redditch.cgi
  69. +0
    -0
      trunk/cgi-bin/Rushmoor.cgi
  70. +0
    -0
      trunk/cgi-bin/Scarborough.cgi
  71. +0
    -0
      trunk/cgi-bin/Sevenoaks.cgi
  72. +0
    -0
      trunk/cgi-bin/South Bucks.cgi
  73. +0
    -0
      trunk/cgi-bin/South Ribble.cgi
  74. +0
    -0
      trunk/cgi-bin/South Staffordshire.cgi
  75. +0
    -0
      trunk/cgi-bin/SouthOxfordshire.cgi
  76. +0
    -0
      trunk/cgi-bin/Southampton.cgi
  77. +0
    -0
      trunk/cgi-bin/Spelthorne.cgi
  78. +0
    -0
      trunk/cgi-bin/St Helens.cgi
  79. +0
    -0
      trunk/cgi-bin/Stevenage.cgi
  80. +0
    -0
      trunk/cgi-bin/Stirling.cgi
  81. +0
    -0
      trunk/cgi-bin/Stockton-On-Tees.cgi
  82. +0
    -0
      trunk/cgi-bin/Stratford.cgi
  83. +0
    -0
      trunk/cgi-bin/Sunderland.cgi
  84. +0
    -0
      trunk/cgi-bin/Teignbridge.cgi
  85. +0
    -0
      trunk/cgi-bin/Test Valley.cgi
  86. +0
    -0
      trunk/cgi-bin/Tonbridge.cgi
  87. +0
    -0
      trunk/cgi-bin/Torbay.cgi
  88. +0
    -0
      trunk/cgi-bin/Vale Royal.cgi
  89. +0
    -0
      trunk/cgi-bin/Waveney.cgi
  90. +0
    -0
      trunk/cgi-bin/Wear Valley.cgi
  91. +0
    -0
      trunk/cgi-bin/Wellingborough.cgi
  92. +0
    -0
      trunk/cgi-bin/West Berkshire.cgi
  93. +0
    -0
      trunk/cgi-bin/West Lancashire.cgi
  94. +0
    -0
      trunk/cgi-bin/West Norfolk.cgi
  95. +0
    -0
      trunk/cgi-bin/Winchester.cgi
  96. +0
    -0
      trunk/cgi-bin/Woking.cgi
  97. +0
    -0
      trunk/cgi-bin/Wolverhampton.cgi
  98. +0
    -0
      trunk/cgi-bin/York.cgi
  99. +10
    -0
      trunk/python_scrapers/AcolnetParser.py
  100. +1
    -1
      trunk/python_scrapers/PublicAccessSites.csv

+ 10
- 0
trunk/cgi-bin/AcolnetParser.py Bestand weergeven

@@ -355,6 +355,16 @@ class FyldeParser(AcolnetParser):

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
reg_date_tr = 2
location_tr = 4
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\">")

if __name__ == '__main__':


+ 0
- 0
trunk/cgi-bin/Allerdale.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Alnwick.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Angus.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Aylesbury Vale.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Babergh.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Barrow.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Basildon.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Basingstoke and Deane.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bassetlaw.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bath.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bexley.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Blaby.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bolsover.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bristol.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Buckinghamshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Bury.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Chelmsford.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Cherwell.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Chorley.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/City of London.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Cornwall.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Coventry.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Croydon.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Denbighshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Derby.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Doncaster.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Dundee.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Durham.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Ealing.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Easington.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/East Devon.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/East Dorset.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/East Lindsey.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Edinburgh.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Epsom and Ewell.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Fenland.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Fylde.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Gateshead.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Gedling.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Gloucestershire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Gravesham.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Hammersmith and Fulham.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Haringey.cgi Bestand weergeven


+ 29
- 0
trunk/cgi-bin/Harlow.cgi Bestand weergeven

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

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

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

+ 0
- 0
trunk/cgi-bin/Harrogate.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Hart.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Hartlepool.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/High Peak.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Huntingdonshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Kerrier.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Knowsley.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Lancaster.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Luton.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Malvern Hills.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Mid Devon.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Milton Keynes.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/NW Leicestershire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Newcastle-under-Lyme.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Newham.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/North Tyneside.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/North Warwickshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Northumberland.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Oadby and Wigston.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Oswestry.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Peterborough.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Portsmouth.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Redditch.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Rushmoor.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Scarborough.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Sevenoaks.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/South Bucks.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/South Ribble.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/South Staffordshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/SouthOxfordshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Southampton.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Spelthorne.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/St Helens.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Stevenage.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Stirling.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Stockton-On-Tees.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Stratford.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Sunderland.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Teignbridge.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Test Valley.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Tonbridge.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Torbay.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Vale Royal.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Waveney.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Wear Valley.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Wellingborough.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/West Berkshire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/West Lancashire.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/West Norfolk.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Winchester.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Woking.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/Wolverhampton.cgi Bestand weergeven


+ 0
- 0
trunk/cgi-bin/York.cgi Bestand weergeven


+ 10
- 0
trunk/python_scrapers/AcolnetParser.py Bestand weergeven

@@ -355,6 +355,16 @@ class FyldeParser(AcolnetParser):

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
reg_date_tr = 2
location_tr = 4
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\">")

if __name__ == '__main__':


+ 1
- 1
trunk/python_scrapers/PublicAccessSites.csv Bestand weergeven

@@ -96,4 +96,4 @@
"London Borough of Croydon", "Croydon", "http://planning.croydon.gov.uk/DCWebPages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "CroydonParser"
"East Lindsey District Council", "East Lindsey", "http://www.e-lindsey.gov.uk/planning/AcolnetCGI.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "EastLindseyParser"
"Fylde Borough Council", "Fylde", "http://www2.fylde.gov.uk/planning/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "FyldeParser"
"Harlow Council", "Harlow", "http://planning.harlow.gov.uk/PlanningSearch/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch", "AcolnetParser", "HarlowParser"

Laden…
Annuleren
Opslaan