| @@ -116,5 +116,6 @@ if __name__ == '__main__': | |||||
| # print cumbria_parser.getResults(22,11,2007) | # print cumbria_parser.getResults(22,11,2007) | ||||
| parser = AtriumePlanningParser("Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do") | |||||
| print parser.getResults(13,11,2007) | |||||
| #parser = AtriumePlanningParser("Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do") | |||||
| parser = AtriumePlanningParser("Somerset County Council", "Somerset", "http://webapp1.somerset.gov.uk/ePlanning/loadResults.do") | |||||
| print parser.getResults(1,11,2007) | |||||
| @@ -11,7 +11,7 @@ use XML::Writer; | |||||
| # The master URLs for the Christchurch planning search | # The master URLs for the Christchurch planning search | ||||
| our $SearchURL = "http://webapps.christchurch.gov.uk/PlanningApplications/pages/ApplicationSearch.aspx"; | our $SearchURL = "http://webapps.christchurch.gov.uk/PlanningApplications/pages/ApplicationSearch.aspx"; | ||||
| our $InfoURL = "http://webapps.chirstchurch.gov.uk/PlanningApplications/pages/ApplicationDetails.aspx?Authority=Christchurch%20Borough%20Council&Application="; | |||||
| our $InfoURL = "http://webapps.christchurch.gov.uk/PlanningApplications/pages/ApplicationDetails.aspx?Authority=Christchurch%20Borough%20Council&Application="; | |||||
| # We're a CGI script... | # We're a CGI script... | ||||
| my $query = CGI->new(); | my $query = CGI->new(); | ||||
| @@ -139,6 +139,7 @@ sub output_applications | |||||
| $Writer->dataElement("postcode", $postcode); | $Writer->dataElement("postcode", $postcode); | ||||
| $Writer->dataElement("description", $description); | $Writer->dataElement("description", $description); | ||||
| $Writer->dataElement("info_url", $InfoURL . $reference); | $Writer->dataElement("info_url", $InfoURL . $reference); | ||||
| $Writer->dataElement("comment_url", $InfoURL . $reference); | |||||
| $Writer->dataElement("date_received", $date); | $Writer->dataElement("date_received", $date); | ||||
| $Writer->endTag("application"); | $Writer->endTag("application"); | ||||
| } | } | ||||
| @@ -183,3 +183,4 @@ | |||||
| "Swansea City and County", "Swansea", "http://www2.swansea.gov.uk/", "PlanningExplorer", "SwanseaParser" | "Swansea City and County", "Swansea", "http://www2.swansea.gov.uk/", "PlanningExplorer", "SwanseaParser" | ||||
| "Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/", "PlanningExplorer", "ShrewsburyParser" | "Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/", "PlanningExplorer", "ShrewsburyParser" | ||||
| "Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser" | "Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser" | ||||
| "Somerset County Council", "Somerset", "http://webapp1.somerset.gov.uk/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser" | |||||
| @@ -139,6 +139,7 @@ sub output_applications | |||||
| $Writer->dataElement("postcode", $postcode); | $Writer->dataElement("postcode", $postcode); | ||||
| $Writer->dataElement("description", $description); | $Writer->dataElement("description", $description); | ||||
| $Writer->dataElement("info_url", $InfoURL . $reference); | $Writer->dataElement("info_url", $InfoURL . $reference); | ||||
| $Writer->dataElement("comment_url", $InfoURL . $reference); | |||||
| $Writer->dataElement("date_received", $date); | $Writer->dataElement("date_received", $date); | ||||
| $Writer->endTag("application"); | $Writer->endTag("application"); | ||||
| } | } | ||||